Instructions to use NasimB/all-base-len with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/all-base-len with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/all-base-len")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/all-base-len") model = AutoModelForCausalLM.from_pretrained("NasimB/all-base-len", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/all-base-len with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/all-base-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/all-base-len", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/all-base-len
- SGLang
How to use NasimB/all-base-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/all-base-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/all-base-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/all-base-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/all-base-len", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/all-base-len with Docker Model Runner:
docker model run hf.co/NasimB/all-base-len
Commit History
-
update model card README.md
d1d86e2 -
End of training
0312cd4 -
Training in progress, step 9500
44f5071 -
Training in progress, step 9000
31a1f7c
-
Training in progress, step 8500
bff52e1 -
Training in progress, step 8000
b71525d -
Training in progress, step 7500
88d0875 -
Training in progress, step 7000
65be1e3 -
Training in progress, step 6500
e6bf801 -
Training in progress, step 6000
5d8d9d8 -
Training in progress, step 5500
0d6d101 -
Training in progress, step 5000
8c29bf9 -
Training in progress, step 4500
b2cc649 -
Training in progress, step 4000
9b4293f -
Training in progress, step 3500
120f280 -
Training in progress, step 3000
0d12b10 -
Training in progress, step 2500
2f7ee95 -
Training in progress, step 2000
c7b0059 -
Training in progress, step 1500
6466dbb -
Training in progress, step 1000
b98ef0b -
Training in progress, step 500
27c5b28 -
initial commit
ad320ad