Instructions to use amztheory/code-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use amztheory/code-python with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-7b") model = PeftModel.from_pretrained(base_model, "amztheory/code-python") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from amztheory/code-python: direct link, hf CLI and curl.
- Browser
- Download file 2.73 MB
-
https://huggingface.co/amztheory/code-python/resolve/66536737f44ba23ebedca4fc470b4a3e790517b0/tokenizer.json
- Command line
-
hf download hf://amztheory/code-python@66536737f44ba23ebedca4fc470b4a3e790517b0/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/amztheory/code-python/resolve/66536737f44ba23ebedca4fc470b4a3e790517b0/tokenizer.json
2.73 MB
File too large to display, you can check the raw version instead.