Run this model with HF Jobs
Run madatnlp/codet5-kormath on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/madatnlp/codet5-kormath. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/madatnlp/codet5-kormath on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use madatnlp/codet5-kormath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use madatnlp/codet5-kormath with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("madatnlp/codet5-kormath") model = AutoModelForSeq2SeqLM.from_pretrained("madatnlp/codet5-kormath", device_map="auto") - Notebooks
- Google Colab
- Kaggle
add model
Browse filesFiles changed (3)
- README.mdAdded+81
- config.jsonAdded+66
- tf_model.h5Added+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---license: apache-2.0tags:- generated_from_keras_callbackmodel-index:- name: codet5-kormath results: []---
<!-- This model card has been generated automatically according to the information Keras had access to. You shouldprobably proofread and complete it, then remove this comment. -->
# codet5-kormath
This model is a fine-tuned version of [Salesforce/codet5-base](https://huggingface.co/Salesforce/codet5-base) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 0.1967- Validation Loss: 0.4570- Epoch: 28
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- optimizer: {'name': 'Adam', 'learning_rate': 0.001, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}- training_precision: mixed_bfloat16
### Training results
| Train Loss | Validation Loss | Epoch ||:----------:|:---------------:|:-----:|| 5.0517 | 2.2426 | 0 || 1.9413 | 1.3583 | 1 || 1.7250 | 1.3015 | 2 || 1.2929 | 1.1497 | 3 || 1.1521 | 1.0543 | 4 || 1.0552 | 0.9923 | 5 || 0.9877 | 0.9358 | 6 || 0.9393 | 0.8962 | 7 || 0.8904 | 0.8435 | 8 || 0.8369 | 0.7710 | 9 || 0.7724 | 0.7054 | 10 || 0.6976 | 0.6604 | 11 || 0.6317 | 0.5938 | 12 || 0.5702 | 0.5463 | 13 || 0.5198 | 0.5138 | 14 || 0.4856 | 0.5757 | 15 || 0.5134 | 0.5152 | 16 || 0.4554 | 0.4839 | 17 || 0.4111 | 0.4755 | 18 || 0.3778 | 0.4571 | 19 || 0.3484 | 0.4375 | 20 || 0.3246 | 0.4363 | 21 || 0.3097 | 0.4382 | 22 || 0.2871 | 0.4213 | 23 || 0.2677 | 0.4334 | 24 || 0.2473 | 0.4261 | 25 || 0.2291 | 0.4301 | 26 || 0.2132 | 0.4296 | 27 || 0.1967 | 0.4570 | 28 |
### Framework versions
- Transformers 4.19.2- TensorFlow 2.8.0- Datasets 2.2.1- Tokenizers 0.12.1123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ "_name_or_path": "Salesforce/codet5-base", "architectures": [ "T5ForConditionalGeneration" ], "bos_token_id": 1, "d_ff": 3072, "d_kv": 64, "d_model": 768, "decoder_start_token_id": 0, "dropout_rate": 0.1, "eos_token_id": 2, "feed_forward_proj": "relu", "gradient_checkpointing": false, "id2label": { "0": "LABEL_0" }, "initializer_factor": 1.0, "is_encoder_decoder": true, "label2id": { "LABEL_0": 0 }, "layer_norm_epsilon": 1e-06, "model_type": "t5", "n_positions": 512, "num_decoder_layers": 12, "num_heads": 12, "num_layers": 12, "output_past": true, "pad_token_id": 0, "relative_attention_max_distance": 128, "relative_attention_num_buckets": 32, "task_specific_params": { "summarization": { "early_stopping": true, "length_penalty": 2.0, "max_length": 200, "min_length": 30, "no_repeat_ngram_size": 3, "num_beams": 4, "prefix": "summarize: " }, "translation_en_to_de": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to German: " }, "translation_en_to_fr": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to French: " }, "translation_en_to_ro": { "early_stopping": true, "max_length": 300, "num_beams": 4, "prefix": "translate English to Romanian: " } }, "torch_dtype": "float32", "transformers_version": "4.19.2", "use_cache": true, "vocab_size": 32100}123version https://git-lfs.github.com/spec/v1oid sha256:d8c26aa9390ca19dd341d6ec22f9f5ef77e4369bd7ac122fd65979a4ec243a2bsize 892059032README.mdAdded+81
config.jsonAdded+66
tf_model.h5Added+3