Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model_checkpoint = "HuggingFaceTB/SmolLM-1.7B"
|
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_checkpoint)
|
9 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
10 |
|
11 |
-
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, repetition_penalty=1.5, temperature=0)
|
12 |
|
13 |
|
14 |
abs_path = Path(__file__).parent
|
|
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_checkpoint)
|
9 |
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)
|
10 |
|
11 |
+
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, repetition_penalty=1.5, temperature=0.5, device="cuda")
|
12 |
|
13 |
|
14 |
abs_path = Path(__file__).parent
|