Instructions to use huggingtweets/nasa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/nasa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/nasa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/nasa") model = AutoModelForCausalLM.from_pretrained("huggingtweets/nasa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/nasa with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/nasa" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/nasa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/nasa
- SGLang
How to use huggingtweets/nasa 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/nasa" \ --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/nasa", "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/nasa" \ --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/nasa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/nasa with Docker Model Runner:
docker model run hf.co/huggingtweets/nasa
Commit History
-
Update model preview
1b9a198 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2mre7j8z
f14bfab
-
Update model preview
02a59d4 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2fy4zmrr
e0d3109 -
Update model preview
fcbac8e -
New model from https://wandb.ai/wandb/huggingtweets/runs/2d6qn2w8
6697d72
-
Update model preview
7c6f3b7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/paktt31s
6d21d38
-
Update model preview
a33f4a8 -
New model from https://wandb.ai/wandb/huggingtweets/runs/24dhsaf3
cd39484
-
upload flax model
ad22e7d -
allow flax
7cc9245
-
Update README.md
d46d0b0 -
Update README.md
b9481dc -
Update README.md
0fa4bb4 -
Update config.json
5277860 -
Update tokenizer_config.json
ddb9923 -
Update vocab.json
4dd66c9 -
Update pytorch_model.bin
6ee0195 -
Update merges.txt
3a4bef5 -
Update special_tokens_map.json
a6f4307 -
Update README.md
4c22cb2 -
initial commit
26343bc