Text Generation
Transformers
Safetensors
PyTorch
llama
facebook
meta
llama-3
conversational
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") 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
- Local Apps
- 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
Access Request
#159 opened 8 days ago
by
AIST-Kobe
Access to Llama 3.3 Rejected
#158 opened 30 days ago
by
gptLTS
Request for reconsideration of rejected access
#157 opened about 1 month ago
by
imageryliu
Request Access
#156 opened 2 months ago
by
cppppp123
fix: set `clean_up_tokenization_spaces` to `false`
#155 opened 2 months ago
by
maxsloef
which version flash-attn
#154 opened 3 months ago
by
bhomass1
Install & run this model easily using llmpm
1
#153 opened 3 months ago
by
sarthak-saxena
Access Request
#152 opened 3 months ago
by
Jinxin1
Request: DOI
3
#151 opened 3 months ago
by
Extet
AInewModel70B
1
#150 opened 3 months ago
by
airsheid
Access denied, retry
1
#148 opened 4 months ago
by
EternalVelard
not use
1
#147 opened 6 months ago
by deleted
not use
1
#146 opened 6 months ago
by deleted
Delete LICENSE
1
#145 opened 6 months ago
by deleted
Request: access denied for USC researcher
1
#144 opened 7 months ago
by
annamcush
Access Rejected
1
#143 opened 8 months ago
by
luozheng715
Request Access
1
#142 opened 8 months ago
by
manncodes
Access denied
1
#141 opened 8 months ago
by
mauiwaui97
Adding mention of Tinker support
1
#140 opened 8 months ago
by
clem
ertu
1
#139 opened 9 months ago
by
rezaroma2794
Request: DOI
1
#138 opened 9 months ago
by
bsarpel
Request: DOI
1
#137 opened 9 months ago
by
NandhiniPrakash
I am facing error issue?
🚀 2
2
#136 opened 10 months ago
by
Shashank1227
Resolved
1
#135 opened 10 months ago
by
kianomoomi
Access denied on Hugging Face due to incorrect university name
1
#134 opened 10 months ago
by
Erminjamak
Access Rejected
1
#133 opened 10 months ago
by
VigneshPA
Q)request rejected
1
#132 opened 10 months ago
by
luy112
Access Request
1
#131 opened 10 months ago
by
louis0706
Request: DOI
1
#130 opened 10 months ago
by
adams-j
Request to Reconsider Access – Llama-3.3-70B-Instruct
1
#129 opened 10 months ago
by
zmeng0116
Access request
1
#128 opened 10 months ago
by
lop1498
Access Reuqest
1
#127 opened 10 months ago
by
AngryAnderson
Request: DOI
1
#126 opened 10 months ago
by
husnainAhmed
Access Review Please
2
#125 opened 10 months ago
by
gregoamd
request access: Error - Cannot access gated repo for url
1
#124 opened 11 months ago
by
zack-1234
Meta LLaMA 3.3 model access granted but still restricted on Hugging Face
1
#123 opened 11 months ago
by
alvinshao
Access denied?
1
#122 opened 11 months ago
by
anitawang
Request: Access to Llama 3.3-70B-Instruct for Educational AI Research
1
#120 opened 11 months ago
by
asakhy
Access denied
1
#119 opened 11 months ago
by
rodrigocarrillo
review access request
2
#118 opened 11 months ago
by
da2b
Why was my access denied ??
3
#117 opened 12 months ago
by
shivamsoni
I requested access to the repo incorrectly and was rejected
7
#116 opened 12 months ago
by
morristm
What is the reason for the Meta rejections on HF
2
#115 opened 12 months ago
by
immanuelpeter
Review access request
3
#114 opened 12 months ago
by
e4solutionsarchitect
Llama-3.3 models blocked
6
#113 opened about 1 year ago
by
dkennetz
Multiple Tool Calls?
1
#111 opened about 1 year ago
by
nbroad
Request pending
2
#109 opened about 1 year ago
by
jschein
Update README.md
1
#108 opened about 1 year ago
by
warrior1127
Inference API Pricing for PRO subscription
1
#107 opened about 1 year ago
by
ParthviK
Access denied: Meta's Llama 3 & 3.1 models
1
#106 opened about 1 year ago
by
PoiseLogic