Instructions to use smohammadi/llama3B-nvfp4w with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smohammadi/llama3B-nvfp4w with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="smohammadi/llama3B-nvfp4w")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("smohammadi/llama3B-nvfp4w") model = AutoModelForMultimodalLM.from_pretrained("smohammadi/llama3B-nvfp4w") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use smohammadi/llama3B-nvfp4w with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smohammadi/llama3B-nvfp4w" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smohammadi/llama3B-nvfp4w", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/smohammadi/llama3B-nvfp4w
- SGLang
How to use smohammadi/llama3B-nvfp4w 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 "smohammadi/llama3B-nvfp4w" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smohammadi/llama3B-nvfp4w", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "smohammadi/llama3B-nvfp4w" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smohammadi/llama3B-nvfp4w", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use smohammadi/llama3B-nvfp4w with Docker Model Runner:
docker model run hf.co/smohammadi/llama3B-nvfp4w
- Xet hash:
- 67d3f59563a9dfd62f4354c8ac70b7112ef31e60bdcd981bf26413c7c090a94c
- Size of remote file:
- 2.6 GB
- SHA256:
- 8a81c59a86bcb428cac32a0878a64ee5a5b5ca61407214b490fc76c5b824768e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.