Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
custom_code
text-generation-inference
Instructions to use danielv835/santacoder-finetuned-the-stack-rust-test1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use danielv835/santacoder-finetuned-the-stack-rust-test1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="danielv835/santacoder-finetuned-the-stack-rust-test1", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("danielv835/santacoder-finetuned-the-stack-rust-test1", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("danielv835/santacoder-finetuned-the-stack-rust-test1", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use danielv835/santacoder-finetuned-the-stack-rust-test1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "danielv835/santacoder-finetuned-the-stack-rust-test1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "danielv835/santacoder-finetuned-the-stack-rust-test1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/danielv835/santacoder-finetuned-the-stack-rust-test1
- SGLang
How to use danielv835/santacoder-finetuned-the-stack-rust-test1 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 "danielv835/santacoder-finetuned-the-stack-rust-test1" \ --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": "danielv835/santacoder-finetuned-the-stack-rust-test1", "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 "danielv835/santacoder-finetuned-the-stack-rust-test1" \ --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": "danielv835/santacoder-finetuned-the-stack-rust-test1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use danielv835/santacoder-finetuned-the-stack-rust-test1 with Docker Model Runner:
docker model run hf.co/danielv835/santacoder-finetuned-the-stack-rust-test1
Commit ·
3f6915b
1
Parent(s): 92feaff
Training in progress, step 6
Browse files
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:c9264993859380e022c75c6213926cb9b97470a9a25a2a49efe5de6d8b296959
|
| 3 |
size 4600336581
|
runs/Feb22_21-49-13_644eff047e96/events.out.tfevents.1677102578.644eff047e96.432.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ab15b311cfd87e6c806d90f262ac4308113f034fdb5fcedb7d47ef689fa0ba2
|
| 3 |
+
size 5678
|