How do i access llama 3.1 70b in my space ?
text
How do i access llama 3.1 70b in my space ?
new_line
new_line
this doesn't seem to work, can someone help me with a working code 
text
this doesn't seem to work, can someone help me with a working code 
new_line
new_line
new_line
from transformers import AutoConfig
text
from transformers import AutoConfig
new_line
new_line
config = AutoConfig.from_pretrained("meta-llama/Meta-Llama-3.1-70B", revision="main")
text
config = AutoConfig.from_pretrained("meta-llama/Meta-Llama-3.1-70B", revision="main")
new_line
config.rope_scaling = {"type": "llama3", "factor": 8.0}
text
config.rope_scaling = {"type": "llama3", "factor": 8.0}
new_line
new_line
model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3.1-70B", config=config, use_auth_token=True)
text
model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3.1-70B", config=config, use_auth_token=True)
How do i access llama 3.1 70b in my space ?

this doesn't seem to work, can someone help me with a working code 


from transformers import AutoConfig

config = AutoConfig.from_pretrained("meta-llama/Meta-Llama-3.1-70B", revision="main")
config.rope_scaling = {"type": "llama3", "factor": 8.0}

model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3.1-70B", config=config, use_auth_token=True)
👀
John6666
6640bbd0220cfa8cbfdce080
https://cdn-avatars.huggingface.co/v1/production/uploads/6640bbd0220cfa8cbfdce080/wiAHUu5ewawyipNs0YFBR.png
John Smith
John6666
user
6611d508b5e6420d0307487d
/avatars/fcf9eac61e0ec82ba5503bf07c867247.svg
Rangaiah
Shamurangaiah
user