Instructions to use ThoughtFocusAI/CodeGeneration-CodeT5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ThoughtFocusAI/CodeGeneration-CodeT5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ThoughtFocusAI/CodeGeneration-CodeT5-base") model = AutoModelForSeq2SeqLM.from_pretrained("ThoughtFocusAI/CodeGeneration-CodeT5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from ThoughtFocusAI/CodeGeneration-CodeT5-base: direct link, hf CLI and curl.
- Browser
- Download file 639 kB
-
https://huggingface.co/ThoughtFocusAI/CodeGeneration-CodeT5-base/resolve/main/vocab.json
- Command line
-
hf download hf://ThoughtFocusAI/CodeGeneration-CodeT5-base/vocab.json
-
curl -L -o vocab.json https://huggingface.co/ThoughtFocusAI/CodeGeneration-CodeT5-base/resolve/main/vocab.json
639 kB
File too large to display, you can check the raw version instead.