Text Generation
Transformers
PyTorch
TensorBoard
Rust
code
bloom
programming
text-generation-inference
Instructions to use mrm8488/bloom-560m-finetuned-the-stack-rust with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrm8488/bloom-560m-finetuned-the-stack-rust with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mrm8488/bloom-560m-finetuned-the-stack-rust")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mrm8488/bloom-560m-finetuned-the-stack-rust") model = AutoModelForCausalLM.from_pretrained("mrm8488/bloom-560m-finetuned-the-stack-rust", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mrm8488/bloom-560m-finetuned-the-stack-rust with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mrm8488/bloom-560m-finetuned-the-stack-rust" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mrm8488/bloom-560m-finetuned-the-stack-rust", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mrm8488/bloom-560m-finetuned-the-stack-rust
- SGLang
How to use mrm8488/bloom-560m-finetuned-the-stack-rust 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 "mrm8488/bloom-560m-finetuned-the-stack-rust" \ --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": "mrm8488/bloom-560m-finetuned-the-stack-rust", "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 "mrm8488/bloom-560m-finetuned-the-stack-rust" \ --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": "mrm8488/bloom-560m-finetuned-the-stack-rust", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mrm8488/bloom-560m-finetuned-the-stack-rust with Docker Model Runner:
docker model run hf.co/mrm8488/bloom-560m-finetuned-the-stack-rust
Commit History
-
Update README.md
f062ce6 -
Update README.md
3010919 -
Update README.md
831dd2a -
Update README.md
461e80a -
Update README.md
d2414e7 -
Update README.md
5358462 -
Update README.md
88fe318 -
Update README.md
0ea841e
-
Update README.md
b681cdf -
Create README.md
aaf6b7d
-
Training in progress, step 99000
da062f0 -
Training in progress, step 98000
b7b961f -
Training in progress, step 97000
01c41cc -
Training in progress, step 96000
ae9a310 -
Training in progress, step 95000
3d42397 -
Training in progress, step 94000
9fe5fe4 -
Training in progress, step 93000
1854d43 -
Training in progress, step 92000
2f51a85
-
Training in progress, step 91000
2e2320d -
Training in progress, step 90000
202087e -
Training in progress, step 89000
6bdc712 -
Training in progress, step 88000
03396ed -
Training in progress, step 87000
d425717 -
Training in progress, step 86000
aaf6730 -
Training in progress, step 85000
8ae2ae8 -
Training in progress, step 84000
1fdba41 -
Training in progress, step 83000
61cda37 -
Training in progress, step 82000
94229c1 -
Training in progress, step 81000
14dc1ea -
Training in progress, step 80000
b69aa81 -
Training in progress, step 79000
4b38205
-
Training in progress, step 78000
5f39255 -
Training in progress, step 77000
280f4b1 -
Training in progress, step 76000
d1305d4 -
Training in progress, step 75000
879bec4 -
Training in progress, step 74000
16990d9 -
Training in progress, step 73000
67a6ff4 -
Training in progress, step 72000
aa407e9 -
Training in progress, step 71000
26f4402 -
Training in progress, step 70000
28b97eb -
Training in progress, step 69000
ef6764d -
Training in progress, step 68000
3eeb7c7 -
Training in progress, step 67000
7938b4f -
Training in progress, step 66000
f6a85e3 -
Training in progress, step 65000
899972b -
Training in progress, step 64000
53f479d -
Training in progress, step 63000
567c394 -
Training in progress, step 62000
5baa366 -
Training in progress, step 61000
022ed65 -
Training in progress, step 60000
75212df