Instructions to use huggingtweets/nvidia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/nvidia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/nvidia")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/nvidia") model = AutoModelForCausalLM.from_pretrained("huggingtweets/nvidia", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/nvidia with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/nvidia" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/nvidia", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/nvidia
- SGLang
How to use huggingtweets/nvidia 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 "huggingtweets/nvidia" \ --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": "huggingtweets/nvidia", "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 "huggingtweets/nvidia" \ --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": "huggingtweets/nvidia", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/nvidia with Docker Model Runner:
docker model run hf.co/huggingtweets/nvidia
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.19f0f46
-
New model from https://wandb.ai/wandb/huggingtweets/runs/mxgikehc
77bd883
-
upload flax model
cceee84 -
allow flax
2cda076
-
Update vocab.json
ff27528 -
Update tokenizer_config.json
d37e27d -
Update README.md
9e8aa7e -
Update merges.txt
8e4e5cd -
Update config.json
6612863 -
Update pytorch_model.bin
04ae81a -
Update special_tokens_map.json
096702d -
Update README.md
17ee227 -
Update README.md
d6bcd01 -
Update README.md
aff8c03 -
Update README.md
dae06ba -
Update merges.txt
953ba7a -
Update config.json
1fdb168 -
Update special_tokens_map.json
4b23ab9 -
Update vocab.json
2a70de8 -
Update tokenizer_config.json
d137fda
-
Update vocab.json
ee35b8c -
Update special_tokens_map.json
8c40ee2 -
Update README.md
716d955 -
Update merges.txt
1240644 -
Update config.json
638ab80 -
Update tokenizer_config.json
89d659f -
Update vocab.json
a4aaded -
Update special_tokens_map.json
253abaf -
Update README.md
ee4733a -
Update merges.txt
8c3dc1f -
Update tokenizer_config.json
1d9767f -
Update config.json
452cc60 -
Update vocab.json
abec1e9 -
Update special_tokens_map.json
17c2aa5 -
Update README.md
777a7b0 -
Update merges.txt
7c5ea2c -
Update tokenizer_config.json
0c682b5 -
Update config.json
4776ca6 -
Update vocab.json
7d1fb05 -
Update special_tokens_map.json
43506d6 -
Update README.md
39f3c97 -
Update merges.txt
18829ac -
Update tokenizer_config.json
9f04590 -
Update config.json
9c141bb -
Update vocab.json
2d2daba -
Update special_tokens_map.json
461e794 -
Update README.md
62025e1 -
Update merges.txt
f9baf6c -
Update tokenizer_config.json
fb387b2 -
Update config.json
1d0ad04