Instructions to use intm/codet5-small-go_generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intm/codet5-small-go_generation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("intm/codet5-small-go_generation") model = AutoModelForSeq2SeqLM.from_pretrained("intm/codet5-small-go_generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
readme
Browse files13 unmodified lines14151617181912 unmodified lines32333435363713 unmodified lines# How to useHere is how to use this model:from transformers import T5ForConditionalGeneration, RobertaTokenizer# 加载模型和tokenizer12 unmodified lines# this prints "return kmeta.ChildName(rev.GetName(), "-pa")"# Training dataYinShicheng13 unmodified lines1415161718192012 unmodified lines3334353637383913 unmodified lines# How to useHere is how to use this model:```from transformers import T5ForConditionalGeneration, RobertaTokenizer# 加载模型和tokenizer12 unmodified lines# this prints "return kmeta.ChildName(rev.GetName(), "-pa")"```# Training dataYinShicheng
README.md+2