Downloads · 30 days
176
54% of all-time downloads
RinKana/MiniGPT-30M-Wikipedia-Var1
MiniGPT-30M-Wikipedia-Var1 is a text generation model from RinKana. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as mit.
30M-parameter decoder-only Transformer trained from scratch on WikiText-103. Architecture features RMSNorm, Rotary Positional Embeddings (RoPE), and SwiGLU activation.
Downloads · 30 days
176
54% of all-time downloads
All-time downloads
325
Public
Parameters
49.3M
197 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors197 MB · 99%
From the Hugging Face model README
30M-parameter decoder-only Transformer trained from scratch on WikiText-103. Architecture features RMSNorm, Rotary Positional Embeddings (RoPE), and SwiGLU activation.
This model uses a custom architecture and cannot be loaded with AutoModelForCausalLM. Load manually:
# Download these files from the repo:
# - model.py (contains MiniGPT class definition)
# - model.safetensors (weights)
# - tokenizer.json (GPT-2 tokenizer)
from model import MiniGPT, Config
import torch
from transformers import GPT2Tokenizer
config = Config()
model = MiniGPT(config)
model.load_state_dict(torch.load("model.safetensors", weights_only=True))
model.eval()
tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
# Basic generation example
prompt = "The world is a"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
with torch.no_grad():
logits, _ = model(input_ids)
next_token = torch.argmax(logits[:, -1, :], dim=-1)
print(tokenizer.decode(next_token))
⚠️ Warning: This is an experimental 30M-parameter model. Outputs are grammatically plausible but factually unreliable. Intended for architectural study and education — not for production use.