Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import torch
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
3 |
|
4 |
-
|
5 |
model = AutoModelForCausalLM.from_pretrained(
|
6 |
"rinna/bilingual-gpt-neox-4b-instruction-ppo",
|
7 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, use_fast=False)
|
|
|
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(
|
6 |
"rinna/bilingual-gpt-neox-4b-instruction-ppo",
|
7 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, use_fast=False)
|