philipp-zettl commited on
Commit
175f545
·
verified ·
1 Parent(s): 0c3a5b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ model = AutoModelForCausalLM.from_config(config, trust_remote_code=True).float()
20
  weights_path = hf_hub_download("HuggingFaceTB/nanowhale-100m", "model.safetensors")
21
  state_dict = load_file(weights_path)
22
  model.load_state_dict(state_dict, strict=True)
23
- model = model.cuda().eval()
24
 
25
  tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/nanowhale-100m")
26
 
 
20
  weights_path = hf_hub_download("HuggingFaceTB/nanowhale-100m", "model.safetensors")
21
  state_dict = load_file(weights_path)
22
  model.load_state_dict(state_dict, strict=True)
23
+ model = model.eval()
24
 
25
  tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/nanowhale-100m")
26