Instructions to use NasimB/all-base-rerun-new-loop2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NasimB/all-base-rerun-new-loop2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NasimB/all-base-rerun-new-loop2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NasimB/all-base-rerun-new-loop2") model = AutoModelForCausalLM.from_pretrained("NasimB/all-base-rerun-new-loop2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NasimB/all-base-rerun-new-loop2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NasimB/all-base-rerun-new-loop2" # 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-rerun-new-loop2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NasimB/all-base-rerun-new-loop2
- SGLang
How to use NasimB/all-base-rerun-new-loop2 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-rerun-new-loop2" \ --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-rerun-new-loop2", "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-rerun-new-loop2" \ --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-rerun-new-loop2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NasimB/all-base-rerun-new-loop2 with Docker Model Runner:
docker model run hf.co/NasimB/all-base-rerun-new-loop2
Commit History
-
update model card README.md
01c2243 -
End of training
d1e7987 -
Training in progress, step 10000
b2e0290 -
Training in progress, step 9500
b9938bb -
Training in progress, step 9000
3e497e3 -
Training in progress, step 8500
9888725 -
Training in progress, step 8000
3b3731e -
Training in progress, step 7500
d24920c -
Training in progress, step 7000
84c5b3a -
Training in progress, step 6500
6955376 -
Training in progress, step 6000
5b90d23 -
Training in progress, step 5500
c3ebd41 -
Training in progress, step 5000
882cb57 -
Training in progress, step 4500
6efd6ab -
Training in progress, step 4000
487c122 -
Training in progress, step 3500
780b596 -
Training in progress, step 3000
18eb78a -
Training in progress, step 2500
aa43044 -
Training in progress, step 2000
ac61f14 -
Training in progress, step 1500
b2a84e3 -
Training in progress, step 1000
0d5d976 -
Training in progress, step 500
ccd5720 -
initial commit
b3393b0