Text Generation
Transformers
TensorBoard
Safetensors
starcoder2
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use oakela/finetune_starcoder2_nate_continue_600steps with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use oakela/finetune_starcoder2_nate_continue_600steps with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="oakela/finetune_starcoder2_nate_continue_600steps")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("oakela/finetune_starcoder2_nate_continue_600steps") model = AutoModelForCausalLM.from_pretrained("oakela/finetune_starcoder2_nate_continue_600steps") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use oakela/finetune_starcoder2_nate_continue_600steps with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oakela/finetune_starcoder2_nate_continue_600steps" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oakela/finetune_starcoder2_nate_continue_600steps", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/oakela/finetune_starcoder2_nate_continue_600steps
- SGLang
How to use oakela/finetune_starcoder2_nate_continue_600steps 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 "oakela/finetune_starcoder2_nate_continue_600steps" \ --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": "oakela/finetune_starcoder2_nate_continue_600steps", "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 "oakela/finetune_starcoder2_nate_continue_600steps" \ --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": "oakela/finetune_starcoder2_nate_continue_600steps", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use oakela/finetune_starcoder2_nate_continue_600steps with Docker Model Runner:
docker model run hf.co/oakela/finetune_starcoder2_nate_continue_600steps
oakela/starcoder2_dev_data
Browse files
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4908892224
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eb98286fe093b26b7fdf62d80e2ec57dd23c0eeba45714050e8f286969a2f7c
|
| 3 |
size 4908892224
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4990931640
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f0893e76fd6363dbca098053a4073074c66788a976634ed732b09d73491aed3
|
| 3 |
size 4990931640
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2221715176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19bfb522f285aa08eb5ff759725e0a365f824d10b72875950a435d587e0995c7
|
| 3 |
size 2221715176
|
runs/Mar17_13-56-22_f119afb38f26/events.out.tfevents.1710683786.f119afb38f26.4730.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d25c045fa826fb0a64cbd42ef11fbab7d3c6737cb5d22935b9386dfcb5c220c
|
| 3 |
+
size 17679
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acadcacb9a643c6447f5cb69ee32e6c7e9e07cf15d8648ff00e9d1cbb8feb4ca
|
| 3 |
size 4920
|