Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- demo_cpu.py +2 -2
demo_cpu.py
CHANGED
|
@@ -42,13 +42,13 @@ def load_model():
|
|
| 42 |
"""Load the model and tokenizer."""
|
| 43 |
logger.info("Loading model on CPU...")
|
| 44 |
model = AutoModelForCausalLM.from_pretrained(
|
| 45 |
-
"
|
| 46 |
torch_dtype=torch.float32,
|
| 47 |
device_map="cpu",
|
| 48 |
trust_remote_code=True
|
| 49 |
)
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 51 |
-
"
|
| 52 |
trust_remote_code=True
|
| 53 |
)
|
| 54 |
|
|
|
|
| 42 |
"""Load the model and tokenizer."""
|
| 43 |
logger.info("Loading model on CPU...")
|
| 44 |
model = AutoModelForCausalLM.from_pretrained(
|
| 45 |
+
"Zwounds/boolean-search-model",
|
| 46 |
torch_dtype=torch.float32,
|
| 47 |
device_map="cpu",
|
| 48 |
trust_remote_code=True
|
| 49 |
)
|
| 50 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 51 |
+
"Zwounds/boolean-search-model",
|
| 52 |
trust_remote_code=True
|
| 53 |
)
|
| 54 |
|