Text Generation
Transformers
Safetensors
PyTorch
llama
facebook
meta
llama-3
conversational
Eval Results
text-generation-inference
Instructions to use meta-llama/Llama-3.3-70B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meta-llama/Llama-3.3-70B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meta-llama/Llama-3.3-70B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.3-70B-Instruct") model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.3-70B-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
- Local Apps Settings
- vLLM
How to use meta-llama/Llama-3.3-70B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meta-llama/Llama-3.3-70B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-llama/Llama-3.3-70B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meta-llama/Llama-3.3-70B-Instruct
- SGLang
How to use meta-llama/Llama-3.3-70B-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "meta-llama/Llama-3.3-70B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-llama/Llama-3.3-70B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "meta-llama/Llama-3.3-70B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-llama/Llama-3.3-70B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use meta-llama/Llama-3.3-70B-Instruct with Docker Model Runner:
docker model run hf.co/meta-llama/Llama-3.3-70B-Instruct
Llama-3.3 models blocked
6
#113 opened about 1 year ago
by
dkennetz
Multiple Tool Calls?
1
#111 opened over 1 year ago
by
nbroad
Request pending
2
#109 opened over 1 year ago
by
jschein
Update README.md
1
#108 opened over 1 year ago
by
warrior1127
Inference API Pricing for PRO subscription
1
#107 opened over 1 year ago
by
ParthviK
Access denied: Meta's Llama 3 & 3.1 models
1
#106 opened over 1 year ago
by
PoiseLogic
How to resend request for llama3 70B, or how to return $9 for pro subscription?
1
#105 opened over 1 year ago
by
IlyaKupchenko
Request pending
4
#104 opened over 1 year ago
by
Jean-Baptiste
Troubles using
1
#103 opened over 1 year ago
by
Goncalocp
Request: DOI
#101 opened over 1 year ago
by
Yenugu12
Rejection
👍 11
#100 opened over 1 year ago
by
RogersResearchAccount
tokenizer.model between Llama 3.1/3.2/3.3
#99 opened over 1 year ago
by
kyle-amd-dev
Access request rejected
#98 opened over 1 year ago
by
ruyi101
Adding notice for developers on importance of organization name
1
#97 opened over 1 year ago
by
betodepaola
Denied Access - No reason
1
#96 opened over 1 year ago
by
ntoscano01
Day of the week
#95 opened over 1 year ago
by
jac-jim
Llama 2 Acess got Rejected
#93 opened over 1 year ago
by
sathvik8317
Student Denied Access
#92 opened over 1 year ago
by
katherineefischer
Appeal for Access
#91 opened over 1 year ago
by
huggi12ab67a4
Request: DOI
#90 opened over 1 year ago
by
KCell
My request to access t Llama-3.3-70B-Instruct was rejected
👍 1
3
#89 opened over 1 year ago
by
malizade
Access Request resubmit
#87 opened over 1 year ago
by
ummmsso
Llama 3.2 3B application was rejected
1
#86 opened over 1 year ago
by
blwowski
Request: DOI
#84 opened over 1 year ago
by
tuann21
Llama3.3 Model Access Request
#83 opened over 1 year ago
by
AlicanKiraz0
Update README.md
#82 opened over 1 year ago
by
punit84
Need to resubmit request
#81 opened over 1 year ago
by
mlanza
Llama-3.3-70B-Instruct to fine-tune a custom AI model
#79 opened over 1 year ago
by
Invincible-official
Real Elon Musk
#78 opened over 1 year ago
by
Arlondra
model usage is rejected
#77 opened over 1 year ago
by
hyunji7
Genuine Request With Innovative Intentions
#76 opened over 1 year ago
by deleted
what hoops need to be jumped thru for access??? got rejected
#75 opened over 1 year ago
by
wilbur61
Request: DOI
#74 opened over 1 year ago
by
vizmur
Your request to access this repo has been rejected by the repo's authors
#73 opened over 1 year ago
by
iantcmx
Your request to access this repo has been rejected by the repo's authors
1
#72 opened over 1 year ago
by
fredaraujo
Can't load tokenizer
➕ 4
#71 opened over 1 year ago
by
Channyxox
Is the default to auto-reject requests for HF Llama 3.3-70B ?
➕ 6
#70 opened over 1 year ago
by
CaptainDave
How to gain access?
#69 opened over 1 year ago
by
akiokiyota
Access pending
#68 opened over 1 year ago
by
cataluna84
Your request to access this repo has been rejected by the repo's authors.
1
#67 opened over 1 year ago
by
Siarhei-1981
ValueError and OSError
👍 1
#66 opened over 1 year ago
by
RWTH-A
Request: DOI
#65 opened over 1 year ago
by
oguzhankirli1
Access restricted in Switzerland
#64 opened over 1 year ago
by
SwissMadoff
Access to Restricted Repo
#63 opened over 1 year ago
by
JunhaoSong
Request access
3
#62 opened over 1 year ago
by
Dat30
__init__() got an unexpected keyword argument 'api_key'
#61 opened over 1 year ago
by
S0nna-0
Request: DOI
#60 opened over 1 year ago
by
abubasith86
Access Automaticaly Rejected
4
#59 opened over 1 year ago
by
tulio-coppola