Instructions to use ThoughtFocusAI/CodeGeneration-CodeT5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ThoughtFocusAI/CodeGeneration-CodeT5-small with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ThoughtFocusAI/CodeGeneration-CodeT5-small") model = AutoModelForSeq2SeqLM.from_pretrained("ThoughtFocusAI/CodeGeneration-CodeT5-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download readme.md from ThoughtFocusAI/CodeGeneration-CodeT5-small: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/ThoughtFocusAI/CodeGeneration-CodeT5-small/resolve/442dbb239c33e0b119c2d0bd119bcdea6f3bd06d/readme.md
- Command line
-
hf download hf://ThoughtFocusAI/CodeGeneration-CodeT5-small@442dbb239c33e0b119c2d0bd119bcdea6f3bd06d/readme.md
-
curl -L -o readme.md https://huggingface.co/ThoughtFocusAI/CodeGeneration-CodeT5-small/resolve/442dbb239c33e0b119c2d0bd119bcdea6f3bd06d/readme.md
554 Bytes
| # CodeGeneration-CodeT5-base | |
| This model was trained from the pretrained CodeT5-small model on an unknown dataset. It achieves the following results on the evaluation set: | |
| ngram match: 0.004416605133373854 | |
| weighted ngram match: 0.0054556977099450635 | |
| syntax_match: 0.1444141689373297 | |
| dataflow_match: 0.31654676258992803 | |
| bleu = 0.91 | |
| codebleu = 0.11770830859264417 | |
| exact match = 0.0 | |
| # Model description | |
| This model was trained from the pretrained CodeT5-small model Salesforce and has been fine tuned for Python Code Genertion. |