debug
Browse files
data/models/llama3-1-70b.py
CHANGED
|
@@ -41,7 +41,7 @@ def chat_completion():
|
|
| 41 |
eos_token_id=[128001, 128009]
|
| 42 |
).to("cuda")
|
| 43 |
|
| 44 |
-
outputs = model.generate(**inputs, do_sample=True, max_new_tokens=max_tokens,temperature=temperature,top_p=top_p,token=
|
| 45 |
|
| 46 |
return jsonify({"status": "success", "output": tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0]})
|
| 47 |
except Exception as e:
|
|
|
|
| 41 |
eos_token_id=[128001, 128009]
|
| 42 |
).to("cuda")
|
| 43 |
|
| 44 |
+
outputs = model.generate(**inputs, do_sample=True, max_new_tokens=max_tokens,temperature=temperature,top_p=top_p,token=api_key).to("cuda")
|
| 45 |
|
| 46 |
return jsonify({"status": "success", "output": tokenizer.batch_decode(outputs[:, inputs['input_ids'].shape[1]:], skip_special_tokens=True)[0]})
|
| 47 |
except Exception as e:
|