Downloads · 30 days
13
16% of all-time downloads
MightyDragon-Dev/Chinese-Dragon-GPT1
Chinese-Dragon-GPT1 is a text generation model from MightyDragon-Dev. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Chinese-Dragon-GPT1 is a lightweight, 82.7-million parameter Transformer model trained from scratch on Chinese news data. It follows the GPT-1 (Post-LayerNorm) architecture and was optimized for efficient training and…
Downloads · 30 days
13
16% of all-time downloads
All-time downloads
81
Public
Parameters
82.7M
992 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt661 MB · 49%
From the Hugging Face model README
Chinese-Dragon-GPT1 is a lightweight, 82.7-million parameter Transformer model trained from scratch on Chinese news data. It follows the GPT-1 (Post-LayerNorm) architecture and was optimized for efficient training and inference on consumer-grade hardware.
This model was trained as part of the MightyDragon-Dev project. Unlike most LLMs trained on massive GPU clusters, this model was trained on an Intel i5-10210U (ThinkPad X13 Laptop) using CPU-only optimization.
You can use this model directly with the Hugging Face pipeline API:
from transformers import pipeline
generator = pipeline(
"text-generation",
model="MightyDragon-Dev/Chinese-Dragon-GPT1"
)
# Example Prompt
prompt = "据报道,"
result = generator(prompt, max_length=50, do_sample=True, top_k=50)
print(result[0]['generated_text'])