Instructions to use sullyd/Beatles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sullyd/Beatles with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sullyd/Beatles")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sullyd/Beatles") model = AutoModelForCausalLM.from_pretrained("sullyd/Beatles", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sullyd/Beatles with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sullyd/Beatles" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sullyd/Beatles", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sullyd/Beatles
- SGLang
How to use sullyd/Beatles 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 "sullyd/Beatles" \ --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": "sullyd/Beatles", "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 "sullyd/Beatles" \ --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": "sullyd/Beatles", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sullyd/Beatles with Docker Model Runner:
docker model run hf.co/sullyd/Beatles
Commit History
-
Upload merges.txt with huggingface_hub
cd2ea05 -
Upload vocab.json with huggingface_hub
290b992 -
Upload added_tokens.json with huggingface_hub
24e33fc -
Upload special_tokens_map.json with huggingface_hub
559c9ac -
Upload tokenizer_config.json with huggingface_hub
97ba93f -
Upload training_args.bin with huggingface_hub
c3121c4 -
Upload pytorch_model.bin with huggingface_hub
c371fe6 -
Upload generation_config.json with huggingface_hub
30cebc0 -
Upload config.json with huggingface_hub
e147caa -
initial commit
Sullivan Dovie8bf195d