Spaces:
Runtime error
Runtime error
Switch model
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
|
19 |
|
20 |
# Load peft config for pre-trained checkpoint etc.
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
22 |
-
model_id = "
|
23 |
if device == "cpu":
|
24 |
model = AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True, use_auth_token=HF_TOKEN)
|
25 |
else:
|
|
|
19 |
|
20 |
# Load peft config for pre-trained checkpoint etc.
|
21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
22 |
+
model_id = "trl-lib/llama-se-rl-merged"
|
23 |
if device == "cpu":
|
24 |
model = AutoModelForCausalLM.from_pretrained(model_id, low_cpu_mem_usage=True, use_auth_token=HF_TOKEN)
|
25 |
else:
|