Text Generation
Transformers
Safetensors
PyTorch
English
nemotron-nas
nvidia
llama-3
conversational
custom_code
Instructions to use nvidia/Llama-3_1-Nemotron-51B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Llama-3_1-Nemotron-51B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nvidia/Llama-3_1-Nemotron-51B-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("nvidia/Llama-3_1-Nemotron-51B-Instruct", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use nvidia/Llama-3_1-Nemotron-51B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/Llama-3_1-Nemotron-51B-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": "nvidia/Llama-3_1-Nemotron-51B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/Llama-3_1-Nemotron-51B-Instruct
- SGLang
How to use nvidia/Llama-3_1-Nemotron-51B-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 "nvidia/Llama-3_1-Nemotron-51B-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": "nvidia/Llama-3_1-Nemotron-51B-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 "nvidia/Llama-3_1-Nemotron-51B-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": "nvidia/Llama-3_1-Nemotron-51B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/Llama-3_1-Nemotron-51B-Instruct with Docker Model Runner:
docker model run hf.co/nvidia/Llama-3_1-Nemotron-51B-Instruct
Update README.md
#26 opened 4 months ago
by
cherry0328
Can Llama-3.1- Nemotron-40B-Instruct be released as well?
π 1
#24 opened over 1 year ago
by
tdh111
What is the context size this model was trained on?
2
#23 opened over 1 year ago
by
treehugg3
Modified llama.cpp to generate GGUFs for Llama-3_1-Nemotron-51
π€―π₯ 2
#22 opened over 1 year ago
by
ymcki
Documentation about the linear attention used in some layers of this model?
#21 opened over 1 year ago
by
ymcki
Comparison to the 70B model?
π 1
1
#20 opened over 1 year ago
by
AIGUYCONTENT
Update README.md
#11 opened over 1 year ago
by
Vlad748283847
vLLM compatible?
π 5
3
#10 opened over 1 year ago
by
nickandbro
AttributeError: 'DeciLMConfig'
3
#9 opened over 1 year ago
by
bluenevus
fp8 / int8 inference - use bitsandbytes or awq
π 2
#8 opened over 1 year ago
by
dtanow
GGUF possible ?
πβ€οΈ 4
2
#5 opened over 1 year ago
by
gopi87
fine-tuning
#1 opened over 1 year ago
by
kzmaker