Instructions to use huggingtweets/devon_onearth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/devon_onearth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/devon_onearth")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/devon_onearth") model = AutoModelForCausalLM.from_pretrained("huggingtweets/devon_onearth", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/devon_onearth with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/devon_onearth" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/devon_onearth", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/devon_onearth
- SGLang
How to use huggingtweets/devon_onearth 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/devon_onearth" \ --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/devon_onearth", "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/devon_onearth" \ --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/devon_onearth", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/devon_onearth with Docker Model Runner:
docker model run hf.co/huggingtweets/devon_onearth
Commit History
-
upload flax model
8441215 -
allow flax
c670dd4
-
Update model preview
6f3ffe8 -
Update model preview
e8fcc76 -
Update model preview
e1624ff -
Update model preview
d594fa1 -
Update model preview
0d88bdf -
Update model preview
a757055 -
Update model preview
b9054f4 -
Update model preview
f78aa55 -
Update model preview
83dc588 -
Update model preview
d83758e -
Update model preview
dd86408 -
New model from https://wandb.ai/wandb/huggingtweets/runs/ryyr6zq5
f52aa99 -
Update model preview
790b677 -
Update model preview
835d488 -
Update model preview
cdf1be5 -
Update model preview
6eadcb7 -
Update model preview
c825c30 -
Update model preview
0668204 -
Update model preview
13d605a -
Update model preview
07e0b8f -
Update model preview
f5367f8 -
Update model preview
400b55d -
Update model preview
04b693b -
Update model preview
6e00d4f -
Update model preview
a66f997 -
Update model preview
63f9deb -
Update model preview
6d5fc2b -
New model from https://wandb.ai/wandb/huggingtweets/runs/3f5v86og
c1ae3c7 -
initial commit
1420cbe