Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
ShubhamD95
/
Gemma
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
ShubhamD95
commited on
May 15
Commit
98a1c89
·
verified
·
1 Parent(s):
fd0804c
Gemma.py
Browse files
Files changed (1)
hide
show
app.py
+5
-0
app.py
ADDED
Viewed
@@ -0,0 +1,5 @@
1
+
from transformers import AutoTokenizer, AutoModelForCausalLM
2
+
3
+
model_name = "google/gemma-3-1b-it"
4
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
5
+
model = AutoModelForCausalLM.from_pretrained(model_name)