Text Generation
Transformers
TensorBoard
Safetensors
English
t5
text2text-generation
code
text-generation-inference
Instructions to use Rakhman16/program-synthesis-java-codet5-xlcost with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rakhman16/program-synthesis-java-codet5-xlcost with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Rakhman16/program-synthesis-java-codet5-xlcost")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Rakhman16/program-synthesis-java-codet5-xlcost") model = AutoModelForSeq2SeqLM.from_pretrained("Rakhman16/program-synthesis-java-codet5-xlcost", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rakhman16/program-synthesis-java-codet5-xlcost with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rakhman16/program-synthesis-java-codet5-xlcost" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rakhman16/program-synthesis-java-codet5-xlcost", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rakhman16/program-synthesis-java-codet5-xlcost
- SGLang
How to use Rakhman16/program-synthesis-java-codet5-xlcost 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 "Rakhman16/program-synthesis-java-codet5-xlcost" \ --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": "Rakhman16/program-synthesis-java-codet5-xlcost", "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 "Rakhman16/program-synthesis-java-codet5-xlcost" \ --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": "Rakhman16/program-synthesis-java-codet5-xlcost", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Rakhman16/program-synthesis-java-codet5-xlcost with Docker Model Runner:
docker model run hf.co/Rakhman16/program-synthesis-java-codet5-xlcost
Training in progress, step 9000, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 891558696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d2fed1926239147914453e57ca85f79acce260462bc2afc598586f72fadfed2
|
| 3 |
size 891558696
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1783272762
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:374dfd8815428e9c5168f02a86bf74d702f63ce34b2283eb2726587be36c804f
|
| 3 |
size 1783272762
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83d62ea030413978bd3636ba1f9d9d6f1ba38759b40011d5c2748b76c830d832
|
| 3 |
size 14244
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:306dd95734f7ad38a3bb53f9bba14ecb71a74aa00d06cd261b25b11270f7475e
|
| 3 |
size 1064
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch": 3.
|
| 5 |
"eval_steps": 500,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -150,6 +150,13 @@
|
|
| 150 |
"learning_rate": 5.873649210307565e-06,
|
| 151 |
"loss": 0.3219,
|
| 152 |
"step": 8500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
}
|
| 154 |
],
|
| 155 |
"logging_steps": 500,
|
|
@@ -169,7 +176,7 @@
|
|
| 169 |
"attributes": {}
|
| 170 |
}
|
| 171 |
},
|
| 172 |
-
"total_flos": 2.
|
| 173 |
"train_batch_size": 4,
|
| 174 |
"trial_name": null,
|
| 175 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 3.7406483790523692,
|
| 5 |
"eval_steps": 500,
|
| 6 |
+
"global_step": 9000,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 150 |
"learning_rate": 5.873649210307565e-06,
|
| 151 |
"loss": 0.3219,
|
| 152 |
"step": 8500
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"epoch": 3.7406483790523692,
|
| 156 |
+
"grad_norm": 0.8144080638885498,
|
| 157 |
+
"learning_rate": 5.0423940149625935e-06,
|
| 158 |
+
"loss": 0.316,
|
| 159 |
+
"step": 9000
|
| 160 |
}
|
| 161 |
],
|
| 162 |
"logging_steps": 500,
|
|
|
|
| 176 |
"attributes": {}
|
| 177 |
}
|
| 178 |
},
|
| 179 |
+
"total_flos": 2.192065718648832e+16,
|
| 180 |
"train_batch_size": 4,
|
| 181 |
"trial_name": null,
|
| 182 |
"trial_params": null
|