abobonbobo13 commited on
Commit
0e33c0f
·
verified ·
1 Parent(s): 1a438a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import torch
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
- MODEL_ID = "rinna/bilingual-gpt-neox-4b-instruction-ppo"model = AutoModelForCausalLM.from_pretrained("model_name", device_map="cpu")
 
5
  tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, use_fast=False)
6
 
7
  device = model.device
 
1
  import torch
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
+ MODEL_ID = "rinna/bilingual-gpt-neox-4b-instruction-ppo"
5
+ model = AutoModelForCausalLM.from_pretrained("model_name", device_map="cpu")
6
  tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, use_fast=False)
7
 
8
  device = model.device