Downloads · 30 days
0
Hwang16/drawall-1o
drawall-1o is a machine learning model from Hwang16. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as artistic-2.0.
Downloads · 30 days
0
Access
Public
Updated Nov 15, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 75%
From the Hugging Face model README
pip install transformers torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B") model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-j-6B")
input_text = "Xin chào! Bạn có thể giúp gì cho tôi?" input_ids = tokenizer(input_text, return_tensors="pt").input_ids outputs = model.generate(input_ids, max_length=100) print(tokenizer.decode(outputs[0], skip_special_tokens=True))