mondk/Msh-Tiny-14M

🤗 Hugging Face 来源text-generationapache-2.014M 参数56 MBsafetensors✓ 1 个校验和今天更新
已有模型文件?提交模型种子

如果你有完整的模型文件并有权分享,请把示例文件夹路径替换为你的文件路径,再运行这条命令。它会校验文件、制作种子,并将磁力链接和校验和提交给 Pirate Face。请让种子客户端持续做种,方便其他人从节点下载。Pirate Face 不接收模型文件。你可以从账户页面获取社区密钥。也可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo mondk/Msh-Tiny-14M ./model-folder
需要做种者 →

hi guys, im lazy to write, so this was written by claude, ty

msh-tiny

A tiny (~14M parameter) GPT-2-architecture chat model, trained completely from scratch — no pretrained base model. Custom BPE tokenizer trained from zero, custom transformer trained from random initialization, then converted into a standard GPT2LMHeadModel for compatibility with the wider ecosystem.

Looking for a .gguf build? See mondk/GGUF.msh-tiny.

Limitations

Trained from random initialization on a modest amount of data with limited compute — a small educational project, not a production-quality assistant. Expect reliable chat formatting but limited/inconsistent knowledge and occasional incoherent answers.

Prompt format

<|user|>
{your message}
<|assistant|>

The model stops generating at <|end|>.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained("mondk/Msh-Tiny-14M")
tokenizer = AutoTokenizer.from_pretrained("mondk/Msh-Tiny-14M")

prompt = "<|user|>\nhi\n<|assistant|>\n"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
output = model.generate(input_ids, max_new_tokens=100, do_sample=True, temperature=0.7, top_k=40)
print(tokenizer.decode(output[0][input_ids.shape[1]:], skip_special_tokens=True))

Training data

Combining 3 well-known open instruction/chat datasets plus a small hand-written set of everyday chit-chat (greetings, thanks, small talk):

  • tatsu-lab/alpaca
  • teknium/OpenHermes-2.5
  • HuggingFaceH4/no_robots