Instructions to use NasimB/cbt-len with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/cbt-len with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/cbt-len")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/cbt-len") model = AutoModelForCausalLM.from_pretrained("NasimB/cbt-len", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/cbt-len with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/cbt-len" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NasimB/cbt-len", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/cbt-len
- SGLang
How to use NasimB/cbt-len 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 "NasimB/cbt-len" \ --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": "NasimB/cbt-len", "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 "NasimB/cbt-len" \ --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": "NasimB/cbt-len", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/cbt-len with Docker Model Runner:
docker model run hf.co/NasimB/cbt-len
Commit History
-
update model card README.md
76dea27 -
End of training
a432690 -
Training in progress, step 10000
63e77c8 -
Training in progress, step 9500
b7e7aa3 -
Training in progress, step 9000
73cbac8 -
Training in progress, step 8500
2f4487e -
Training in progress, step 8000
8369c51 -
Training in progress, step 7500
bbbb4b6 -
Training in progress, step 7000
8f1568f -
Training in progress, step 6500
4b7d018 -
Training in progress, step 6000
dc0005c -
Training in progress, step 5500
648ea44 -
Training in progress, step 5000
f5ac27b -
Training in progress, step 4500
602cafb -
Training in progress, step 4000
fc8003f -
Training in progress, step 3500
ac56c5b -
Training in progress, step 3000
598f42f -
Training in progress, step 2500
fd111da -
Training in progress, step 2000
53cc3c9 -
Training in progress, step 1500
540aaa0 -
Training in progress, step 1000
f5cd0f0 -
Training in progress, step 500
686ffae -
initial commit
cb94b82