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
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.bd5783f -
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 -
Training in progress, step 9000
c0f994b -
Training in progress, step 8500
52b0640 -
Training in progress, step 8500
b589ed9 -
Training in progress, step 8000
9334567 -
Training in progress, step 8000
4ab4bbb -
Training in progress, step 7500
c45cf02 -
Training in progress, step 7500
aabd7c1 -
Training in progress, step 7000
e3c8ccb -
Training in progress, step 7000
ce4c8b7 -
Training in progress, step 6500
93acf65 -
Training in progress, step 6500
13eefb8 -
Training in progress, step 6000
8d9b8e3 -
Training in progress, step 6000
213604d -
Training in progress, step 5500
233602e -
Training in progress, step 5500
deffdc7
-
Training in progress, step 5000
97a4700 -
Training in progress, step 5000
dc5682e -
Training in progress, step 4500
61fa43b -
Training in progress, step 4500
20fb31b -
Training in progress, step 4000
7013808 -
Training in progress, step 4000
460a23c -
Training in progress, step 3500
be589e2 -
Training in progress, step 3500
769afd1 -
Training in progress, step 3000
e697500 -
Training in progress, step 3000
c4a5db7 -
Training in progress, step 2500
8754409 -
Training in progress, step 2500
cc36ec2 -
Training in progress, step 2000
0868549 -
Training in progress, step 2000
8704c70 -
Training in progress, step 1500
1a34ea2 -
Training in progress, step 1500
eb7f434 -
Training in progress, step 1000
5f8babc -
Training in progress, step 1000
6ec7178 -
Training in progress, step 500
704ac75 -
Training in progress, step 500
b31a749