Instructions to use claudios/longcoder-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use claudios/longcoder-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="claudios/longcoder-base")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("claudios/longcoder-base") model = AutoModel.from_pretrained("claudios/longcoder-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 460 Bytes
18db07e 411af34 9e063c1 | 1 2 3 4 5 6 7 8 | ---
license: mit
language:
- code
arxiv: 2306.14893
---
This is an *unofficial* reupload of [microsoft/longcoder-base](https://huggingface.co/microsoft/longcoder-base) in the `SafeTensors` format using `transformers` `4.40.1`. The goal of this reupload is to prevent older models that are still relevant baselines from becoming stale as a result of changes in HuggingFace. Additionally, I may include minor corrections, such as model max length configuration. |