code-search-net/code_search_net
Viewer • Updated • 4.14M • 32.3k • 333
How to use softhell/code_docstring_model with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("softhell/code_docstring_model")
model = AutoModelForSeq2SeqLM.from_pretrained("softhell/code_docstring_model")This model is a fine-tuned version of Salesforce/codet5-base on the code_search_net dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Bleu |
|---|---|---|---|---|
| 1.111 | 1.0 | 1002 | 0.9781 | 0.0108 |
| 0.998 | 2.0 | 2004 | 0.9397 | 0.0109 |
| 0.9295 | 3.0 | 3006 | 0.9204 | 0.0120 |
| 0.8814 | 4.0 | 4008 | 0.9088 | 0.0159 |
| 0.8557 | 5.0 | 5010 | 0.9064 | 0.0171 |
| 0.8364 | 6.0 | 6012 | 0.9055 | 0.0180 |
| 0.8184 | 6.9933 | 7007 | 0.9051 | 0.0187 |
Base model
Salesforce/codet5-base
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("softhell/code_docstring_model") model = AutoModelForSeq2SeqLM.from_pretrained("softhell/code_docstring_model")