Downloads · 30 days
0
OWG/gpt-j-6B
gpt-j-6B is a machine learning model from OWG. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
GPT-J 6B is a transformer model trained using Ben Wang's Mesh Transformer JAX. "GPT-J" refers to the class of model, while "6B" represents the number of trainable parameters.
Downloads · 30 days
0
Access
Public
Updated Apr 19, 2022
Repo size
24.2 GB
Likes
1
Public
Click a slice to open those files.
Other23.4 GB · 96%
From the Hugging Face model README
GPT-J 6B is a transformer model trained using Ben Wang's Mesh Transformer JAX. "GPT-J" refers to the class of model, while "6B" represents the number of trainable parameters.
Follow this link to see the original implementation.
Download the model by cloning the repository via git clone https://huggingface.co/OWG/gpt-j-6B.
Then you can use the model with the following code:
from onnxruntime import InferenceSession, SessionOptions, GraphOptimizationLevel
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
options = SessionOptions()
options.graph_optimization_level = GraphOptimizationLevel.ORT_ENABLE_ALL
session = InferenceSession("path/to/model.onnx", sess_options=options)
session.disable_fallback()
TODO