Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
custom_code
text-generation-inference
Instructions to use jlpan/santacoder-finetuned-the-stack-bash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jlpan/santacoder-finetuned-the-stack-bash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jlpan/santacoder-finetuned-the-stack-bash", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jlpan/santacoder-finetuned-the-stack-bash", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("jlpan/santacoder-finetuned-the-stack-bash", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jlpan/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 "jlpan/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": "jlpan/santacoder-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jlpan/santacoder-finetuned-the-stack-bash
- SGLang
How to use jlpan/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 "jlpan/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": "jlpan/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 "jlpan/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": "jlpan/santacoder-finetuned-the-stack-bash", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jlpan/santacoder-finetuned-the-stack-bash with Docker Model Runner:
docker model run hf.co/jlpan/santacoder-finetuned-the-stack-bash
Commit History
-
Model save
e885329 -
Training in progress, step 2000
d345781 -
Training in progress, step 1500
a3cc06c -
Training in progress, step 1000
8bc4954 -
Training in progress, step 500
80a680e
-
Training in progress, step 4500
d51cd45 -
Training in progress, step 4000
4f78deb -
Training in progress, step 3500
5836ff8 -
Training in progress, step 3000
b7efe76 -
Training in progress, step 2500
110d524 -
Training in progress, step 2000
51665c5 -
Training in progress, step 1500
df0a91a -
Training in progress, step 1000
669af15 -
Training in progress, step 500
b928480
-
Model save
9fea039 -
Training in progress, step 2000
6ebd427 -
Training in progress, step 1500
44fdd75 -
Training in progress, step 1000
842ce1d -
Training in progress, step 500
27e8a5a -
Training in progress, step 4500
8231d25 -
Training in progress, step 4000
88d815e -
Training in progress, step 3500
8fc1774 -
Training in progress, step 3000
bb2eeed -
Training in progress, step 2500
982bf92
-
Training in progress, step 2000
9ef06a1 -
Training in progress, step 1500
2d90609 -
Training in progress, step 1000
04ad633 -
Training in progress, step 500
f6f4b85