How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="claudios/GPT-C")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("claudios/GPT-C")
model = AutoModelForCausalLM.from_pretrained("claudios/GPT-C", device_map="auto")
Quick Links

IntelliCode Compose: Code Generation Using Transformer

This is an unofficial reupload of GPT-C 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.

Downloads last month
54
Safetensors
Model size
44.8M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support