Instructions to use stabilityai/StableBeluga1-Delta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stabilityai/StableBeluga1-Delta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stabilityai/StableBeluga1-Delta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stabilityai/StableBeluga1-Delta") model = AutoModelForCausalLM.from_pretrained("stabilityai/StableBeluga1-Delta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stabilityai/StableBeluga1-Delta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stabilityai/StableBeluga1-Delta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stabilityai/StableBeluga1-Delta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stabilityai/StableBeluga1-Delta
- SGLang
How to use stabilityai/StableBeluga1-Delta 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 "stabilityai/StableBeluga1-Delta" \ --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": "stabilityai/StableBeluga1-Delta", "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 "stabilityai/StableBeluga1-Delta" \ --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": "stabilityai/StableBeluga1-Delta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stabilityai/StableBeluga1-Delta with Docker Model Runner:
docker model run hf.co/stabilityai/StableBeluga1-Delta
Commit History
-
Adding Evaluation Results
This is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussionsb7a5b61
-
Update README.md
76c8c4f -
Update README.md
d1c7137 -
Update README.md
92cd0d7 -
Update README.md
b11f4d9 -
Delete LICENSE.txt
337866a -
Delete USE_POLICY.md
f01f6e6 -
Delete Notice
ca4fee2 -
Delete LLAMA 2 LICENSE.txt
8529d28 -
Upload 4 files
ff8baba -
Update README.md
edaa16e
-
fix model args
0fdd16b -
Create README.md (#1)
- Create README.md (deca23b17eb14e6a166f044ef3292e98540da23e) - Update README.md (6260eee3a9ab2b7ae39c1633e5231bf30d267bb7)625d53b -
Upload apply_delta.py
3f3a6cb
-
Upload tokenizer
649b644 -
Upload LlamaForCausalLM
2fb056c -
Upload tokenizer
4594d45 -
Upload LlamaForCausalLM
558f022 -
Upload LlamaForCausalLM
8ac65e3 -
initial commit
96cd8d4