BramVanroy commited on
Commit
c3793fb
1 Parent(s): 8626fb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -18,7 +18,6 @@ MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "8192"))
18
  model_id = "BramVanroy/fietje-2b-chat"
19
  avatar_url = "https://huggingface.co/spaces/BramVanroy/fietje-2b/resolve/main/img/fietje-2b-avatar.png"
20
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_8bit=True)
21
- model = model.to("cuda" if torch.cuda.is_available() else "cpu")
22
  tokenizer = AutoTokenizer.from_pretrained(model_id)
23
  tokenizer.pad_token_id = tokenizer.eos_token_id
24
 
 
18
  model_id = "BramVanroy/fietje-2b-chat"
19
  avatar_url = "https://huggingface.co/spaces/BramVanroy/fietje-2b/resolve/main/img/fietje-2b-avatar.png"
20
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_8bit=True)
 
21
  tokenizer = AutoTokenizer.from_pretrained(model_id)
22
  tokenizer.pad_token_id = tokenizer.eos_token_id
23