nanoGPT SLM Instruct -- 123.849984 Million Parameters
Instruction fine-tuned Small Language Model, trained from scratch -> pretrained on 133 classic english fiction books -> SFT on Alpaca-format instructions.
Quick Start
Option 1: Run directly (downloads model + runs 5 examples)
1# Import loads the model automatically (one-time download from HuggingFace)2from nanogpt_slm_instruct_inference import ask
34## First time execution will O/P prefed 5 examples with model responses5# Simple question6print(ask("What is the capital of France?"))7print()8# With input context9print(ask(10 instruction="Summarize the following text.",11 input_text="Machine learning enables systems to learn from data rather than being explicitly programmed."12))13print()14# Control generation15print(ask(16"Write a short poem about the ocean.",17 temperature=1.0,# higher = more creative18 top_k=100,# wider sampling pool19 max_tokens=150# longer output20))21print()