Instructions to use huggingtweets/nntaleb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/nntaleb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/nntaleb")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/nntaleb") model = AutoModelForCausalLM.from_pretrained("huggingtweets/nntaleb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/nntaleb with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/nntaleb" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/nntaleb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/nntaleb
- SGLang
How to use huggingtweets/nntaleb 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/nntaleb" \ --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/nntaleb", "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/nntaleb" \ --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/nntaleb", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/nntaleb with Docker Model Runner:
docker model run hf.co/huggingtweets/nntaleb
Commit History
-
Update model preview
22a808a -
New model from https://wandb.ai/wandb/huggingtweets/runs/x16zvxy1
6ae0e52
-
Update model preview
3290ece -
Update model preview
98e62d0 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1y0l8ww8
88480aa
-
Update model preview
d9b0231 -
New model from https://wandb.ai/wandb/huggingtweets/runs/278506vz
72c0179
-
upload flax model
14ce9ca -
allow flax
ca7a4f9
-
Update special_tokens_map.json
333250e -
Update pytorch_model.bin
736be9a -
Update config.json
ddb2672 -
Update tokenizer_config.json
a11cb90 -
Update README.md
e02f364 -
Update merges.txt
73bc002 -
Update vocab.json
569f34b
-
Update README.md
00f34e7 -
Update merges.txt
638c10a -
Update tokenizer_config.json
cd0ea0e -
Update vocab.json
30900b6 -
Update config.json
fa7ae62 -
Update special_tokens_map.json
1df3d4d
-
Update merges.txt
1704e1b -
Update README.md
4f139ca -
Update tokenizer_config.json
db5f04b -
Update vocab.json
bfc9eb1 -
Update config.json
2982c33 -
Update special_tokens_map.json
4afff2b -
initial commit
28c4d74