File size: 313 Bytes
7866b48
4af2005
 
 
7866b48
4af2005
 
1
2
3
4
5
6
7
8
import gradio as gr
from huggingface_hub import transformers 
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("ibm-granite/granite-3b-code-instruct")
model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-3b-code-instruct")