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="mrm8488/CodeGPT-small-finetuned-python-token-completion")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("mrm8488/CodeGPT-small-finetuned-python-token-completion")
model = AutoModelForCausalLM.from_pretrained("mrm8488/CodeGPT-small-finetuned-python-token-completion")
Quick Links

CodeGPT-small-py fine-tuned on CodeXGLUE for code-refinement task

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

Space using mrm8488/CodeGPT-small-finetuned-python-token-completion 1