Spaces:
Build error
Build error
changed meta-llama-8b
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ h1 {
|
|
46 |
"""
|
47 |
|
48 |
# Load the tokenizer and model
|
49 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
50 |
-
model = AutoModelForCausalLM.from_pretrained("
|
51 |
terminators = [
|
52 |
tokenizer.eos_token_id,
|
53 |
tokenizer.convert_tokens_to_ids("<|eot_id|>")
|
|
|
46 |
"""
|
47 |
|
48 |
# Load the tokenizer and model
|
49 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct")
|
50 |
+
model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct", device_map="auto") # to("cuda:0")
|
51 |
terminators = [
|
52 |
tokenizer.eos_token_id,
|
53 |
tokenizer.convert_tokens_to_ids("<|eot_id|>")
|