Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ DEFAULT_MAX_NEW_TOKENS = 1024
|
|
12 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
13 |
|
14 |
if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
|
15 |
-
model_id = "
|
16 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16)
|
17 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
18 |
else:
|
|
|
12 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
13 |
|
14 |
if torch.cuda.is_available() or os.getenv("ZERO_GPU_SUPPORT", False):
|
15 |
+
model_id = "Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2"
|
16 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16)
|
17 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
18 |
else:
|