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 6500, 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:9b1ae2351e5b6769177f452d6bdf75ceebbf4284094efd31c781f1654ded23a8
|
| 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:7d241bb3d465dc9b7c7c3e682722788888cdd912a2bcd56b4c7ea4839c03df6f
|
| 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:49b63be30ad5ea6dd7741cffe2d5e2097e64fc2bc7414659956d30ee0ca0910e
|
| 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:887c24a9d6576cc94882e0f1848007f533f1d1fcf23382be01b3a312abe3db85
|
| 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": 2.
|
| 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,
|
|
@@ -107,6 +107,13 @@
|
|
| 107 |
"learning_rate": 1.0029925187032419e-05,
|
| 108 |
"loss": 0.3438,
|
| 109 |
"step": 6000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
}
|
| 111 |
],
|
| 112 |
"logging_steps": 500,
|
|
@@ -126,7 +133,7 @@
|
|
| 126 |
"attributes": {}
|
| 127 |
}
|
| 128 |
},
|
| 129 |
-
"total_flos": 1.
|
| 130 |
"train_batch_size": 4,
|
| 131 |
"trial_name": null,
|
| 132 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 2.7015793848711556,
|
| 5 |
"eval_steps": 500,
|
| 6 |
+
"global_step": 6500,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 107 |
"learning_rate": 1.0029925187032419e-05,
|
| 108 |
"loss": 0.3438,
|
| 109 |
"step": 6000
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"epoch": 2.7015793848711556,
|
| 113 |
+
"grad_norm": 0.823439359664917,
|
| 114 |
+
"learning_rate": 9.19866999168745e-06,
|
| 115 |
+
"loss": 0.3406,
|
| 116 |
+
"step": 6500
|
| 117 |
}
|
| 118 |
],
|
| 119 |
"logging_steps": 500,
|
|
|
|
| 133 |
"attributes": {}
|
| 134 |
}
|
| 135 |
},
|
| 136 |
+
"total_flos": 1.583168723877888e+16,
|
| 137 |
"train_batch_size": 4,
|
| 138 |
"trial_name": null,
|
| 139 |
"trial_params": null
|