Instructions to use crumb/Instruct-GPT-J with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use crumb/Instruct-GPT-J with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("crumb/Instruct-GPT-J", device_map="auto") - PEFT
How to use crumb/Instruct-GPT-J with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123456789101112131415161731819202127 unmodified lines49505137525354555657585960616263646566676869707172737475---datasets:- tatsu-lab/alpacalanguage:- enlibrary_name: transformerstags:- peft- lora- instruct- alpaca- gptj---# Instruct-GPT-J
The [EleutherAI/gpt-j-6B](https://hf.co/EleutherAI/gpt-j-6B) model finetuned on the [Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca) instruction dataset with [low rank adaptation](https://arxiv.org/abs/2106.09685).
Use:## Use:
```pythonimport torch27 unmodified lines return f"Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: {instruction} ### Input: {input} ### Response: "```
Where input would be an input for the model to act on based on the instruction.Where input would be an input for the model to act on based on the instruction.
### citations
```bibtex@misc{gpt-j, author = {Wang, Ben and Komatsuzaki, Aran}, title = {{GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model}}, howpublished = {\url{https://github.com/kingoflolz/mesh-transformer-jax}}, year = 2021, month = May}```
```bibtex@misc{alpaca, author = {Rohan Taori and Ishaan Gulrajani and Tianyi Zhang and Yann Dubois and Xuechen Li and Carlos Guestrin and Percy Liang and Tatsunori B. Hashimoto }, title = {Stanford Alpaca: An Instruction-following LLaMA model}, year = {2023}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/tatsu-lab/stanford_alpaca}},}```README.md+40-2