Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
1MR
/
load_model
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1MR
commited on
May 30, 2025
Commit
a76699e
·
verified
·
1 Parent(s):
ddecb8a
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+5
-0
app.py
ADDED
Viewed
@@ -0,0 +1,5 @@
1
+
# Load model directly
2
+
from transformers import AutoTokenizer, AutoModelForCausalLM
3
+
4
+
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-4B")
5
+
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B")