Text Generation
Transformers
TensorBoard
Safetensors
PEFT
phi
Trained with AutoTrain
conversational
custom_code
text-generation-inference
Instructions to use 080-ai/sabre-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 080-ai/sabre-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="080-ai/sabre-2B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("080-ai/sabre-2B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("080-ai/sabre-2B", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use 080-ai/sabre-2B with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 080-ai/sabre-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "080-ai/sabre-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "080-ai/sabre-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/080-ai/sabre-2B
- SGLang
How to use 080-ai/sabre-2B 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 "080-ai/sabre-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "080-ai/sabre-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "080-ai/sabre-2B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "080-ai/sabre-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 080-ai/sabre-2B with Docker Model Runner:
docker model run hf.co/080-ai/sabre-2B
Commit History
-
Update README.md
Verified signature7049c69 -
Upload folder using huggingface_hub
Verified signature4c51e04 -
Upload folder using huggingface_hub
Verified signature6e6758c -
Upload folder using huggingface_hub
Verified signature98ecc88 -
Upload folder using huggingface_hub
Verified signature17c1841 -
Upload folder using huggingface_hub
Verified signature1ce34c4 -
Upload folder using huggingface_hub
Verified signatureefc59a9 -
Upload folder using huggingface_hub
Verified signaturef6f3ef6 -
Upload folder using huggingface_hub
Verified signature955a190 -
Upload folder using huggingface_hub
Verified signaturef8b69ce -
Upload folder using huggingface_hub
Verified signatureab564ec -
Upload folder using huggingface_hub
Verified signature54cbd1f -
Upload folder using huggingface_hub
Verified signature0b051fe -
Upload folder using huggingface_hub
Verified signature2eeea9b -
Upload folder using huggingface_hub
Verified signaturede45c55 -
Upload folder using huggingface_hub
Verified signaturea8fc924 -
Upload folder using huggingface_hub
Verified signaturee61137b -
Upload folder using huggingface_hub
Verified signaturecb971b5 -
Upload folder using huggingface_hub
Verified signatured37e769 -
Upload folder using huggingface_hub
Verified signatureda3fe2f -
Upload folder using huggingface_hub
Verified signaturefb8a470 -
Upload folder using huggingface_hub
Verified signature6d86723 -
Upload folder using huggingface_hub
Verified signature6bec1dc -
Upload folder using huggingface_hub
Verified signature59eac36 -
Upload folder using huggingface_hub
Verified signature3fc8b16 -
Upload folder using huggingface_hub
Verified signaturee18660c -
Upload folder using huggingface_hub
Verified signatured795598 -
Upload folder using huggingface_hub
Verified signatured5b136b -
Upload folder using huggingface_hub
Verified signature3dba998 -
Upload folder using huggingface_hub
Verified signature515177f -
Upload folder using huggingface_hub
Verified signaturef98f00a -
initial commit
Verified signature834752e