Instructions to use formermagic/bart-base-python-1m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use formermagic/bart-base-python-1m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("formermagic/bart-base-python-1m") model = AutoModelForSeq2SeqLM.from_pretrained("formermagic/bart-base-python-1m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1
by SFconvertbot - opened
Files changed (2)
- .gitattributes+1
- model.safetensorsAdded+3
13 unmodified lines14151613 unmodified lines*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text13 unmodified lines1415161713 unmodified lines*.pb filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -textmodel.safetensors filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:a5ec97fc5f7d8beb718a2b4152aff2313fc1453dfa5d6c70f5c48378e6c00e45size 594026336.gitattributes+1
model.safetensorsAdded+3