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="shailja/CodeGen-RE")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("shailja/CodeGen-RE")
model = AutoModelForCausalLM.from_pretrained("shailja/CodeGen-RE", device_map="auto")
Quick Links

CodeGen trained on decompiled ghidra C source code with the capability for answering questions such as:

  1. What is the purpose of the code?
  2. What language is the code written in (c/c++)?
Downloads last month
157
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support