Instructions to use NasimB/all-base5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/all-base5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/all-base5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/all-base5") model = AutoModelForCausalLM.from_pretrained("NasimB/all-base5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/all-base5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/all-base5" # 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-base5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/all-base5
- SGLang
How to use NasimB/all-base5 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-base5" \ --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-base5", "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-base5" \ --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-base5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/all-base5 with Docker Model Runner:
docker model run hf.co/NasimB/all-base5
Commit History
-
update model card README.md
d471a18 -
End of training
c29a387 -
Training in progress, step 10000
ba95503 -
Training in progress, step 9500
e067f30 -
Training in progress, step 9000
91e3231 -
Training in progress, step 8500
fbb8164 -
Training in progress, step 8000
c65b823 -
Training in progress, step 7500
77f6f84 -
Training in progress, step 7000
b804499 -
Training in progress, step 6500
16f28ab -
Training in progress, step 6000
d73d713 -
Training in progress, step 5500
d03ba85 -
Training in progress, step 5000
3c1b377 -
Training in progress, step 4500
cb97d28 -
Training in progress, step 4000
c89b119 -
Training in progress, step 3500
6f6aff7 -
Training in progress, step 3000
a48825b -
Training in progress, step 2500
f9c574b -
Training in progress, step 2000
5a4d4d3 -
Training in progress, step 1500
a9a1525 -
Training in progress, step 1000
d253ff2 -
Training in progress, step 500
a63ed0f
-
Training in progress, step 5000
8d8b66f -
Training in progress, step 4500
0897c50 -
Training in progress, step 4000
dca3fe6 -
Training in progress, step 3500
d2be0b1 -
Training in progress, step 3000
d686055 -
Training in progress, step 2500
bbeaa01 -
Training in progress, step 2000
85e9252 -
Training in progress, step 1500
e463e2f -
Training in progress, step 1000
59b507d -
Training in progress, step 500
9da7f80 -
initial commit
6e32730