Instructions to use NasimB/all-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/all-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/all-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/all-base") model = AutoModelForCausalLM.from_pretrained("NasimB/all-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/all-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/all-base" # 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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/all-base
- SGLang
How to use NasimB/all-base 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" \ --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", "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" \ --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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/all-base with Docker Model Runner:
docker model run hf.co/NasimB/all-base
Commit History
-
Training in progress, step 10000
32f4d66 -
Training in progress, step 1500
d9245d7 -
Training in progress, step 9500
98de33f -
Training in progress, step 1000
908b039 -
Training in progress, step 9000
4c4f6a5 -
Training in progress, step 500
7607328 -
Training in progress, step 8500
ed6d13d -
Training in progress, step 8000
0f3f9df -
Training in progress, step 10000
6746cec -
Training in progress, step 7500
80b2871 -
Training in progress, step 9500
21ece3e -
Training in progress, step 7000
bd22105 -
Training in progress, step 9000
08c1f65 -
Training in progress, step 6500
90131b8 -
Training in progress, step 8500
e57a733 -
Training in progress, step 6000
ddce2c6 -
Training in progress, step 8000
794dd34 -
Training in progress, step 5500
5f64715 -
Training in progress, step 7500
812a8cf -
Training in progress, step 5000
9d60fb8 -
Training in progress, step 7000
678a774 -
Training in progress, step 4500
52fe33b -
Training in progress, step 6500
7f11ecc -
Training in progress, step 4000
6a679fe -
Training in progress, step 6000
5c98665 -
Training in progress, step 3500
b70073e -
Training in progress, step 5500
9ec80bb -
Training in progress, step 3000
e050e50 -
Training in progress, step 5000
018d724 -
Training in progress, step 2500
33fc7b2 -
Training in progress, step 4500
d84cea5 -
Training in progress, step 2000
98340ed -
Training in progress, step 4000
73a52cf -
Training in progress, step 1500
1b7a5ef -
Training in progress, step 3500
5281277 -
Training in progress, step 1000
ab67e4f -
Training in progress, step 3000
c021d0f -
Training in progress, step 500
2876303 -
Training in progress, step 2500
d633254 -
Training in progress, step 2000
560b407 -
Training in progress, step 1500
9e01928 -
Training in progress, step 1000
f872c3a -
Training in progress, step 500
b07a4d3 -
update model card README.md
41cd149 -
End of training
87333ef -
Training in progress, step 10000
33735e2 -
Training in progress, step 10000
f8a859a -
Training in progress, step 9500
e15ab44 -
Training in progress, step 9500
1cea034 -
Training in progress, step 9000
edfb2fb