Text Generation
Transformers
Safetensors
PyTorch
English
language-model
from-scratch
lora
educational
gpt
decoder-only
Instructions to use Skywalker1910/BB8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Skywalker1910/BB8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Skywalker1910/BB8")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Skywalker1910/BB8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Skywalker1910/BB8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Skywalker1910/BB8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Skywalker1910/BB8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Skywalker1910/BB8
- SGLang
How to use Skywalker1910/BB8 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 "Skywalker1910/BB8" \ --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": "Skywalker1910/BB8", "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 "Skywalker1910/BB8" \ --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": "Skywalker1910/BB8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Skywalker1910/BB8 with Docker Model Runner:
docker model run hf.co/Skywalker1910/BB8
Commit History
-
Upload experiments/model_registry.jsonl with huggingface_hub
Verified signature8d27305 -
Upload folder using huggingface_hub
Verified signature5cf453b -
Upload folder using huggingface_hub
Verified signature51aabe3 -
Upload folder using huggingface_hub
Verified signature6616e5a -
Upload folder using huggingface_hub
Verified signature823d000 -
Upload folder using huggingface_hub
Verified signaturedc47263 -
Upload folder using huggingface_hub
Verified signature4dc0c73 -
Upload folder using huggingface_hub
Verified signature8170734 -
Upload folder using huggingface_hub
Verified signature27fcded -
Upload folder using huggingface_hub
Verified signature2751cb3 -
Upload folder using huggingface_hub
Verified signature8e1700a -
Upload folder using huggingface_hub
Verified signature6690f40 -
Upload folder using huggingface_hub
Verified signaturefe1648e -
Upload folder using huggingface_hub
Verified signature65fe07e -
Upload folder using huggingface_hub
Verified signature2513755 -
Upload folder using huggingface_hub
Verified signature2657c0f -
Upload folder using huggingface_hub
Verified signature3e21361 -
Upload folder using huggingface_hub
Verified signature4de5bb2 -
Upload folder using huggingface_hub
Verified signature1fc6457 -
Upload folder using huggingface_hub
Verified signature2b7ee40 -
Upload folder using huggingface_hub
Verified signatureeaea0b9 -
Upload folder using huggingface_hub
Verified signature307d133 -
Upload folder using huggingface_hub
Verified signature6396404 -
Upload folder using huggingface_hub
Verified signature4408eaa -
Upload folder using huggingface_hub
Verified signature0e6d749 -
Upload folder using huggingface_hub
Verified signature96b80f7 -
Upload folder using huggingface_hub
Verified signature920006d -
Upload folder using huggingface_hub
Verified signature61c81cf -
Upload README.md with huggingface_hub
Verified signature2cc9c22 -
initial commit
Verified signaturec6e0519