Spaces:
Runtime error
Runtime error
Mikhil-jivus
commited on
Commit
•
cb1a144
1
Parent(s):
b5d14d0
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ For more details, please check [our post](https://huggingface.co/blog/llama32).
|
|
22 |
access_token = os.getenv('HF_TOKEN')
|
23 |
# Download the Base model
|
24 |
#model_id = "./models/Llama-32-3B-Instruct"
|
25 |
-
model_id = "
|
26 |
MAX_MAX_NEW_TOKENS = 2048
|
27 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
28 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
@@ -32,7 +32,7 @@ device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
|
32 |
#model_id = "nltpt/Llama-3.2-3B-Instruct"
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id,token=access_token)
|
34 |
#tokenizer.padding_side = 'right'
|
35 |
-
tokenizer.eos_token_id = 107
|
36 |
tokenizer.pad_token = tokenizer.eos_token
|
37 |
model = AutoModelForCausalLM.from_pretrained(
|
38 |
model_id,
|
|
|
22 |
access_token = os.getenv('HF_TOKEN')
|
23 |
# Download the Base model
|
24 |
#model_id = "./models/Llama-32-3B-Instruct"
|
25 |
+
model_id = "lmsys/vicuna-7b-v1.5"
|
26 |
MAX_MAX_NEW_TOKENS = 2048
|
27 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
28 |
MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
|
|
|
32 |
#model_id = "nltpt/Llama-3.2-3B-Instruct"
|
33 |
tokenizer = AutoTokenizer.from_pretrained(model_id,token=access_token)
|
34 |
#tokenizer.padding_side = 'right'
|
35 |
+
#tokenizer.eos_token_id = 107
|
36 |
tokenizer.pad_token = tokenizer.eos_token
|
37 |
model = AutoModelForCausalLM.from_pretrained(
|
38 |
model_id,
|