Instructions to use JammyMachina/improved_4bars-mdl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JammyMachina/improved_4bars-mdl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JammyMachina/improved_4bars-mdl")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JammyMachina/improved_4bars-mdl") model = AutoModelForCausalLM.from_pretrained("JammyMachina/improved_4bars-mdl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JammyMachina/improved_4bars-mdl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JammyMachina/improved_4bars-mdl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JammyMachina/improved_4bars-mdl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JammyMachina/improved_4bars-mdl
- SGLang
How to use JammyMachina/improved_4bars-mdl 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 "JammyMachina/improved_4bars-mdl" \ --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": "JammyMachina/improved_4bars-mdl", "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 "JammyMachina/improved_4bars-mdl" \ --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": "JammyMachina/improved_4bars-mdl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JammyMachina/improved_4bars-mdl with Docker Model Runner:
docker model run hf.co/JammyMachina/improved_4bars-mdl
Commit History
-
update model card README.md
27b0db7 -
End of training
021eaef -
Training in progress, step 49152
8b44b83 -
Training in progress, step 45056
9909c9c
-
Training in progress, step 40960
bfd401b -
Training in progress, step 36864
b51472c -
Training in progress, step 32768
d53b6b0 -
Training in progress, step 28672
7f468b0 -
Training in progress, step 24576
43eb5d0 -
Training in progress, step 20480
369262c -
Training in progress, step 16384
36007c3 -
Training in progress, step 12288
d8008d8 -
Training in progress, step 8192
7db3bfb -
Training in progress, step 4096
4d6f6c8 -
Training in progress, step 24576
6498a09 -
Training in progress, step 16384
e7c3284 -
Training in progress, step 8192
834110f
-
Upload with huggingface_hub
d126247
-
Upload manual_upload with huggingface_hub
4088083 -
Upload manual_upload with huggingface_hub
0e9ba0a -
Upload manual_upload with huggingface_hub
da59b0f -
Upload manual_upload with huggingface_hub
058496d -
initial commit
8cf212c