Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
custom_code
text-generation-inference
Instructions to use Mariusbrm/santacoder-finetuned-mbpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mariusbrm/santacoder-finetuned-mbpp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mariusbrm/santacoder-finetuned-mbpp", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mariusbrm/santacoder-finetuned-mbpp", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Mariusbrm/santacoder-finetuned-mbpp", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mariusbrm/santacoder-finetuned-mbpp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mariusbrm/santacoder-finetuned-mbpp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mariusbrm/santacoder-finetuned-mbpp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mariusbrm/santacoder-finetuned-mbpp
- SGLang
How to use Mariusbrm/santacoder-finetuned-mbpp 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 "Mariusbrm/santacoder-finetuned-mbpp" \ --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": "Mariusbrm/santacoder-finetuned-mbpp", "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 "Mariusbrm/santacoder-finetuned-mbpp" \ --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": "Mariusbrm/santacoder-finetuned-mbpp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Mariusbrm/santacoder-finetuned-mbpp with Docker Model Runner:
docker model run hf.co/Mariusbrm/santacoder-finetuned-mbpp
Training in progress, step 50
Browse files- pytorch_model.bin +1 -1
- runs/Jun01_08-57-40_849afafa8157/1685611133.295645/events.out.tfevents.1685611133.849afafa8157.224.1 +3 -0
- runs/Jun01_08-57-40_849afafa8157/events.out.tfevents.1685611133.849afafa8157.224.0 +3 -0
- runs/Jun01_09-32-05_849afafa8157/1685611938.6709728/events.out.tfevents.1685611938.849afafa8157.224.3 +3 -0
- runs/Jun01_09-32-05_849afafa8157/events.out.tfevents.1685611938.849afafa8157.224.2 +3 -0
- training_args.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4600336581
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c16a5ff0941360ae040d77b6a19f1aad0e1618e66c8696435407a11c50a0dfb1
|
| 3 |
size 4600336581
|
runs/Jun01_08-57-40_849afafa8157/1685611133.295645/events.out.tfevents.1685611133.849afafa8157.224.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12ef99d3ad4646ccfee7a964dbf2011bfd4d817ea99e525c3aaf7651deca8248
|
| 3 |
+
size 5898
|
runs/Jun01_08-57-40_849afafa8157/events.out.tfevents.1685611133.849afafa8157.224.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e6b7e39740208d8f760260c3df844c4a427d917f1a18c4648f0202710f1f0c3
|
| 3 |
+
size 12060
|
runs/Jun01_09-32-05_849afafa8157/1685611938.6709728/events.out.tfevents.1685611938.849afafa8157.224.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a974e1cff7011f8858b8c6a234f613b9192056b5cc3044a8463fd31f2367c76
|
| 3 |
+
size 5898
|
runs/Jun01_09-32-05_849afafa8157/events.out.tfevents.1685611938.849afafa8157.224.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e2aa5f5850c282cf4ccf78c9cd2d0b551f67e2b3fbb12f9b8eb07284736b410
|
| 3 |
+
size 12592
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3579
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d18af81e1a238e934e2794995a6af3c2dd93ef3d68711d52028338158b71e695
|
| 3 |
size 3579
|