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")# 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") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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 11500, 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:3866dd2a6475ce2b7385f181f047f2dde98048fd09569a5804ff351fd5e9912f
|
| 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:9fa541d3192bd288c7edb3660d558e142b5e462f59453619d7373f84590e81f7
|
| 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:8fe8dfec12d6b343eb28ee2b43b75b45c3ae2d185dfc75ecd757d9ec7c567e31
|
| 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:2504d9c9451078f79b98032c170c402f3ffeb92d11496a90427e835bd48cd055
|
| 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": 4.
|
| 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,
|
|
@@ -193,6 +193,13 @@
|
|
| 193 |
"learning_rate": 1.7190357439733998e-06,
|
| 194 |
"loss": 0.3166,
|
| 195 |
"step": 11000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
],
|
| 198 |
"logging_steps": 500,
|
|
@@ -212,7 +219,7 @@
|
|
| 212 |
"attributes": {}
|
| 213 |
}
|
| 214 |
},
|
| 215 |
-
"total_flos": 2.
|
| 216 |
"train_batch_size": 4,
|
| 217 |
"trial_name": null,
|
| 218 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 4.7797173732335825,
|
| 5 |
"eval_steps": 500,
|
| 6 |
+
"global_step": 11500,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 193 |
"learning_rate": 1.7190357439733998e-06,
|
| 194 |
"loss": 0.3166,
|
| 195 |
"step": 11000
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"epoch": 4.7797173732335825,
|
| 199 |
+
"grad_norm": 0.7600696682929993,
|
| 200 |
+
"learning_rate": 8.89443059019119e-07,
|
| 201 |
+
"loss": 0.3117,
|
| 202 |
+
"step": 11500
|
| 203 |
}
|
| 204 |
],
|
| 205 |
"logging_steps": 500,
|
|
|
|
| 219 |
"attributes": {}
|
| 220 |
}
|
| 221 |
},
|
| 222 |
+
"total_flos": 2.800962713419776e+16,
|
| 223 |
"train_batch_size": 4,
|
| 224 |
"trial_name": null,
|
| 225 |
"trial_params": null
|