Instructions to use mondk/Safetensors.msh-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mondk/Safetensors.msh-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mondk/Safetensors.msh-tiny")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mondk/Safetensors.msh-tiny") model = AutoModelForCausalLM.from_pretrained("mondk/Safetensors.msh-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mondk/Safetensors.msh-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mondk/Safetensors.msh-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mondk/Safetensors.msh-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mondk/Safetensors.msh-tiny
- SGLang
How to use mondk/Safetensors.msh-tiny with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mondk/Safetensors.msh-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mondk/Safetensors.msh-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mondk/Safetensors.msh-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mondk/Safetensors.msh-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mondk/Safetensors.msh-tiny with Docker Model Runner:
docker model run hf.co/mondk/Safetensors.msh-tiny
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/Safetensors.msh-tiny")
tokenizer = AutoTokenizer.from_pretrained("mondk/Safetensors.msh-tiny")
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.8, 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/alpacateknium/OpenHermes-2.5HuggingFaceH4/no_robots
- Downloads last month
- 5