Downloads · 30 days
43
3% of all-time downloads
ethzanalytics/gpt-j-6B-8bit-sharded
gpt-j-6B-8bit-sharded is a text generation model from ethzanalytics. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a version of hivemind/gpt-j-6B-8bit for low-RAM loading, i.e., free Colab runtimes :)
Downloads · 30 days
43
3% of all-time downloads
All-time downloads
1.4K
Public
Parameters
6.2B
12.4 GB on disk
Likes
7
Public
Click a slice to open those files.
.bin6.2 GB · 50%
How the weights are stored.
U86.2B · 100%
From the Hugging Face model README
This is a version of hivemind/gpt-j-6B-8bit for low-RAM loading, i.e., free Colab runtimes :)
Please refer to the original model card for hivemind/gpt-j-6B-8bit for all details.
NOTE: PRIOR to loading the model, you need to "patch" it to be compatible with loading 8bit weights etc. See the original model card above for details on how to do this.
install transformers, accelerate, and bitsandbytes if needed:
pip install transformers accelerate bitsandbytes
Patch the model, load using device_map="auto":
import transformers
from transformers import AutoTokenizer
"""
CODE TO PATCH GPTJForCausalLM GOES HERE
"""
tokenizer = AutoTokenizer.from_pretrained("ethzanalytics/gpt-j-6B-8bit-sharded")
model = GPTJForCausalLM.from_pretrained(
"ethzanalytics/gpt-j-6B-8bit-sharded",
device_map="auto",
)
Take a look at the notebook for details.