Instructions to use Q-bert/CyclicFormer-tiny-shakespeare with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Q-bert/CyclicFormer-tiny-shakespeare with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Q-bert/CyclicFormer-tiny-shakespeare")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Q-bert/CyclicFormer-tiny-shakespeare", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Q-bert/CyclicFormer-tiny-shakespeare with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Q-bert/CyclicFormer-tiny-shakespeare" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Q-bert/CyclicFormer-tiny-shakespeare", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Q-bert/CyclicFormer-tiny-shakespeare
- SGLang
How to use Q-bert/CyclicFormer-tiny-shakespeare 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 "Q-bert/CyclicFormer-tiny-shakespeare" \ --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": "Q-bert/CyclicFormer-tiny-shakespeare", "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 "Q-bert/CyclicFormer-tiny-shakespeare" \ --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": "Q-bert/CyclicFormer-tiny-shakespeare", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Q-bert/CyclicFormer-tiny-shakespeare with Docker Model Runner:
docker model run hf.co/Q-bert/CyclicFormer-tiny-shakespeare
Commit History
-
Training in progress, step 2200
Verified signature3de43b9 -
Training in progress, step 2100
Verified signature986d5f7 -
Training in progress, step 2000
Verified signature0ee489d -
Training in progress, step 1900
Verified signature0622bc7 -
Training in progress, step 1800
Verified signaturebfd9f90 -
Training in progress, step 1700
Verified signaturea0b1612 -
Training in progress, step 1600
Verified signature44c32a1 -
Training in progress, step 1500
Verified signature6be1556 -
Training in progress, step 1400
Verified signature8c0626e -
Training in progress, step 1300
Verified signaturec616b1c -
Training in progress, step 1200
Verified signature2c0b7e3 -
Training in progress, step 1100
Verified signaturecc2f057 -
Training in progress, step 1000
Verified signature9faf9be -
Training in progress, step 900
Verified signaturefd759b0 -
Training in progress, step 800
Verified signaturee7ae3ed -
Training in progress, step 700
Verified signature15e33e3 -
Training in progress, step 600
Verified signature81f4ff2 -
Training in progress, step 500
Verified signature76fb135 -
Training in progress, step 400
Verified signaturec17607f -
Training in progress, step 300
Verified signature6339a2f -
Training in progress, step 200
Verified signaturebfff005 -
Training in progress, step 100
Verified signature5cd9904 -
initial commit
Verified signature580ae43