Text Generation
Transformers
Safetensors
PyTorch
llama
facebook
meta
llama-3
conversational
text-generation-inference
Instructions to use meta-llama/Llama-3.2-3B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meta-llama/Llama-3.2-3B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meta-llama/Llama-3.2-3B-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.2-3B-Instruct") model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-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
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meta-llama/Llama-3.2-3B-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.2-3B-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.2-3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meta-llama/Llama-3.2-3B-Instruct
- SGLang
How to use meta-llama/Llama-3.2-3B-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.2-3B-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.2-3B-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.2-3B-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.2-3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use meta-llama/Llama-3.2-3B-Instruct with Docker Model Runner:
docker model run hf.co/meta-llama/Llama-3.2-3B-Instruct
Requesting for meta-llama/Llama-3.2-3B-Instruct access
#147 opened over 1 year ago
by
reynalbperez
Request for Access
#146 opened over 1 year ago
by
Kenjihilasak
Request: DOI
#145 opened over 1 year ago
by
sdamte
Access Request
#144 opened over 1 year ago
by
sdamte
Access rejected
1
#143 opened over 1 year ago
by
sendag
I made a request for access to Meta's Llama 3.2 in February 2025. the status is still pending.
#142 opened over 1 year ago
by
Bobricha
Rejected from LLAMA 3.2
#141 opened over 1 year ago
by
rasu187
Access rejected
#140 opened over 1 year ago
by
djdeepak
Request: DOI
#139 opened over 1 year ago
by
asher2510
Request: DOI
#135 opened over 1 year ago
by
mnehete32
Request: DOI
#134 opened over 1 year ago
by
Ed7348
Pending Approval for Meta's Llama 3.2 Language Models Since December 2024
#133 opened over 1 year ago
by
huggingmove
Access Rejected - Agent Course
3
#132 opened over 1 year ago
by
ahmarshah
Request: DOI
#131 opened over 1 year ago
by
itsmypc
Request: DOI
#130 opened over 1 year ago
by
GaelJ
I need up you model for privategpt run document
#129 opened over 1 year ago
by
happytold
Request: DOI
#128 opened over 1 year ago
by
unknownPM8
Hugging Face Agents Course - Access Request Rejected
2
#127 opened over 1 year ago
by
L3k33
Requesting Access to Llama 3.2B Instruct for Personal AI Development.
3
#126 opened over 1 year ago
by
Prince4193
Access request for the agent-course
#125 opened over 1 year ago
by
duketta
Need Access request for this Llama-3 series collection
#124 opened over 1 year ago
by
vmurakal
access request
#123 opened over 1 year ago
by
loganwang007
Request: DOI
#122 opened over 1 year ago
by
Rades007
Access rejected
👀 1
4
#121 opened over 1 year ago
by
z0nt
please grant my llama - 3.2 -3B
#119 opened over 1 year ago
by
Feliciazhan
Llama 3.2 access
#118 opened over 1 year ago
by
isaacrehg
LLama 3.2 rejected access
👀 1
5
#117 opened over 1 year ago
by
jomamaxox
Update README.md
#113 opened over 1 year ago
by
adeelahmad
Please grant me access to meta-llama/Llama-3.2-3B-Instruct
👀 1
#111 opened over 1 year ago
by
fdcolin
Please grant access for the Llama Models
#110 opened over 1 year ago
by
jumpjump666
Requesting for access
#109 opened over 1 year ago
by
reynalbperez
Requests get rejected for AI Agent course
#108 opened over 1 year ago
by
ronneycui
Requesting access for meta-llama/Llama-3.2-3B-Instruct for the agents-course
#107 opened over 1 year ago
by
asdaroot
My request to access this repo has been rejected
4
#106 opened over 1 year ago
by
DengYaoCN
request access
#105 opened over 1 year ago
by
jeffxucai
Access Request to Meta Llama models - (Hugging Face - AI Agents Course)
1
#104 opened over 1 year ago
by
Tcquaranta
Please approve my request, declined from your side
#103 opened over 1 year ago
by
anupom100
ACCESS REQUEST REJECTED FOR llama3.2 MODELS
#102 opened over 1 year ago
by
JyotiShukla
Access request denied, needed for agents-course
2
#101 opened over 1 year ago
by
moesmufti
Request: DOI
#100 opened over 1 year ago
by
Polain
Access Request Rejected
#99 opened over 1 year ago
by
murtuza26
Access Request to Meta Llama models - (Hugging Face - AI Agents Course)
#97 opened over 1 year ago
by
bnates
Access Request
#96 opened over 1 year ago
by
reynalbperez
Request: DOI
#94 opened over 1 year ago
by
thyoo
Is there a reason why resquest to use the pre-trained model is rejected?
😔 2
#93 opened over 1 year ago
by
YuPhDBielefeld
How to resubmit the request?
#92 opened over 1 year ago
by
siriushe
my request is rejected
1
#91 opened over 1 year ago
by
alsasdfa
Accessing request rejected
#90 opened over 1 year ago
by
mhea
Rejected Access needed for Agentic Course from Hugging Face
#89 opened over 1 year ago
by
blwowski
Request to access Llama-3.2-3B-Instruct repo has been rejected
1
#88 opened over 1 year ago
by
Mayurr-voraa