Run this model with HF Jobs
Run SEBIS/code_trans_t5_base_commit_generation 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/SEBIS/code_trans_t5_base_commit_generation. 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/SEBIS/code_trans_t5_base_commit_generation 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 SEBIS/code_trans_t5_base_commit_generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SEBIS/code_trans_t5_base_commit_generation with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="SEBIS/code_trans_t5_base_commit_generation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("SEBIS/code_trans_t5_base_commit_generation") model = AutoModel.from_pretrained("SEBIS/code_trans_t5_base_commit_generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files4 unmodified lines5674 unmodified lines- text: "new file mode 100644 index 000000000 . . 892fda21b Binary files / dev / null and b / src / plugins / gateway / lib / joscar . jar differ"---4 unmodified lines567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768694 unmodified lines- text: "new file mode 100644 index 000000000 . . 892fda21b Binary files / dev / null and b / src / plugins / gateway / lib / joscar . jar differ"---# CodeTrans model for git commit message generationPretrained model on git commit using the t5 base model architecture. It was first released in[this repository](https://github.com/agemagician/CodeTrans). This model is trained on tokenized git commit: it works best with tokenized git commit.## Model descriptionThis CodeTrans model is based on the `t5-base` model. It has its own SentencePiece vocabulary model. It used single-task training on Git Commit Message Generation dataset.## Intended uses & limitationsThe model could be used to generate the git commit message for the git commit changes or be fine-tuned on other relevant tasks. It can be used on unparsed and untokenized commit changes. However, if the change is tokenized, the performance should be better.### How to useHere is how to use this model to generate git commit message using Transformers SummarizationPipeline:```pythonfrom transformers import AutoTokenizer, AutoModelWithLMHead, SummarizationPipelinepipeline = SummarizationPipeline(model=AutoModelWithLMHead.from_pretrained("SEBIS/code_trans_t5_base_commit_generation"),tokenizer=AutoTokenizer.from_pretrained("SEBIS/code_trans_t5_base_commit_generation", skip_special_tokens=True),device=0)tokenized_code = "new file mode 100644 index 000000000 . . 892fda21b Binary files / dev / null and b / src / plugins / gateway / lib / joscar . jar differ"pipeline([tokenized_code])```Run this example in [colab notebook](https://github.com/agemagician/CodeTrans/blob/main/prediction/single%20task/commit%20generation/base_model.ipynb).## Training dataThe supervised training tasks datasets can be downloaded on [Link](https://www.dropbox.com/sh/488bq2of10r4wvw/AACs5CGIQuwtsD7j_Ls_JAORa/finetuning_dataset?dl=0&subfolder_nav_tracking=1)## Evaluation resultsFor the git commit message generation task, different models achieves the following results on different programming languages (in BLEU score):Test results :| Language / Model | Java || -------------------- | :------------: || CodeTrans-ST-Small | 39.61 || CodeTrans-ST-Base | 38.67 || CodeTrans-TF-Small | 44.22 || CodeTrans-TF-Base | 44.17 || CodeTrans-TF-Large | **44.41** || CodeTrans-MT-Small | 36.17 || CodeTrans-MT-Base | 39.25 || CodeTrans-MT-Large | 41.18 || CodeTrans-MT-TF-Small | 43.96 || CodeTrans-MT-TF-Base | 44.19 || CodeTrans-MT-TF-Large | 44.34 || State of the art | 32.81 |> Created by [Ahmed Elnaggar](https://twitter.com/Elnaggar_AI) | [LinkedIn](https://www.linkedin.com/in/prof-ahmed-elnaggar/) and Wei Ding | [LinkedIn](https://www.linkedin.com/in/wei-ding-92561270/)
README.md+62