Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
custom_code
text-generation-inference
Instructions to use aiswaryasankar/santacoder-finetuned-the-stack-bash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aiswaryasankar/santacoder-finetuned-the-stack-bash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aiswaryasankar/santacoder-finetuned-the-stack-bash", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aiswaryasankar/santacoder-finetuned-the-stack-bash", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("aiswaryasankar/santacoder-finetuned-the-stack-bash", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use aiswaryasankar/santacoder-finetuned-the-stack-bash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aiswaryasankar/santacoder-finetuned-the-stack-bash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aiswaryasankar/santacoder-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aiswaryasankar/santacoder-finetuned-the-stack-bash
- SGLang
How to use aiswaryasankar/santacoder-finetuned-the-stack-bash 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 "aiswaryasankar/santacoder-finetuned-the-stack-bash" \ --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": "aiswaryasankar/santacoder-finetuned-the-stack-bash", "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 "aiswaryasankar/santacoder-finetuned-the-stack-bash" \ --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": "aiswaryasankar/santacoder-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aiswaryasankar/santacoder-finetuned-the-stack-bash with Docker Model Runner:
docker model run hf.co/aiswaryasankar/santacoder-finetuned-the-stack-bash
Commit ·
c00a24f
1
Parent(s): c16f4f2
Training in progress, step 500
Browse files
config.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
| 31 |
"summary_type": "cls_index",
|
| 32 |
"summary_use_proj": true,
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
-
"transformers_version": "4.
|
| 35 |
"use_cache": false,
|
| 36 |
"vocab_size": 49280
|
| 37 |
}
|
|
|
|
| 31 |
"summary_type": "cls_index",
|
| 32 |
"summary_use_proj": true,
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
+
"transformers_version": "4.31.0",
|
| 35 |
"use_cache": false,
|
| 36 |
"vocab_size": 49280
|
| 37 |
}
|
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:717d61e5f35215839408ff4e5856df1e10843457c5bcf3e9973911396da400de
|
| 3 |
size 4600336581
|
runs/Jul25_23-54-49_dc4665a62643/events.out.tfevents.1690330281.dc4665a62643.4335.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c14145abe2029ff2b02e23f84f1f9a1a4736178eda59c1deb66a4fd7e27b899
|
| 3 |
+
size 12575
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3963
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83f6d34417917f482dd252fe0f0a123445cb328738c07bb18b5956bdccb068d2
|
| 3 |
size 3963
|