themissingCRAM commited on
Commit
54fbe78
·
1 Parent(s): 3504be4

transformerModel

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -160,11 +160,12 @@ if __name__ == "__main__":
160
 
161
  # you can use HFApiModel from smolagents if you don't mind paying more money.
162
  model = TransformersModel(
163
- # model_id="Qwen/Qwen2.5-Coder-14B-Instruct",
164
- model_id="meta-llama/Llama-3.2-3B-Instruct",
165
  device_map="cuda"
 
166
 
167
- )
168
  # model = HfApiModel(
169
  # model_id="meta-llama/Meta-Llama-3.1-8B-Instruct",
170
  # token = <YOUR-HF-TOKEN-HERE>
 
160
 
161
  # you can use HFApiModel from smolagents if you don't mind paying more money.
162
  model = TransformersModel(
163
+ model_id="Qwen/Qwen2.5-Coder-14B-Instruct",
164
+ # model_id="meta-llama/Llama-3.2-3B-Instruct",
165
  device_map="cuda"
166
+ ,max_new_tokens=5000
167
 
168
+ ).bfloat16().cuda()
169
  # model = HfApiModel(
170
  # model_id="meta-llama/Meta-Llama-3.1-8B-Instruct",
171
  # token = <YOUR-HF-TOKEN-HERE>