Instructions to use huggingtweets/cubytes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/cubytes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/cubytes")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/cubytes") model = AutoModelForCausalLM.from_pretrained("huggingtweets/cubytes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/cubytes with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/cubytes" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/cubytes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/cubytes
- SGLang
How to use huggingtweets/cubytes 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/cubytes" \ --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/cubytes", "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/cubytes" \ --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/cubytes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/cubytes with Docker Model Runner:
docker model run hf.co/huggingtweets/cubytes
Commit History
-
Update model preview
3148c5a -
Update model preview
25c937d -
New model from https://wandb.ai/wandb/huggingtweets/runs/1x1wffyb
a1423aa
-
Update model preview
f078c12 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2zjixtcd
0bc5f55
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1alv38pf
1c49bb1
-
Update model preview
56592f6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2j3gmqtr
d434bc8
-
Update model preview
51b4972 -
New model from https://wandb.ai/wandb/huggingtweets/runs/39ipovg7
b5a6b94
-
Update model preview
7727f97 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3d9q0rcb
48ad0b8
-
Update model preview
781d37d -
New model from https://wandb.ai/wandb/huggingtweets/runs/23k4ov3l
8e8daca
-
Update model preview
b4f9175 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1gt4cs4m
6d487b5
-
upload flax model
f7c891f -
allow flax
4da645d
-
Update model preview
7e7a4e3 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3c6own99
071c723
-
Update model preview
c238656 -
New model from https://wandb.ai/wandb/huggingtweets/runs/tgscqbym
c79b890
-
New model from https://wandb.ai/wandb/huggingtweets/runs/3g2baf66
49afd70
-
Update model preview
8a0b171 -
Update model preview
99609cd -
New model from https://wandb.ai/wandb/huggingtweets/runs/20n8dhml
b5d7771
-
Update model preview
dd05117 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1iwdrixu
3ce7798 -
New model from https://wandb.ai/wandb/huggingtweets/runs/25t66mnp
06c0f16 -
initial commit
7de3ca9