Instructions to use monika-p/student-performance-slm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use monika-p/student-performance-slm with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf monika-p/student-performance-slm:F16 # Run inference directly in the terminal: llama cli -hf monika-p/student-performance-slm:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf monika-p/student-performance-slm:F16 # Run inference directly in the terminal: llama cli -hf monika-p/student-performance-slm:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf monika-p/student-performance-slm:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf monika-p/student-performance-slm:F16
Use Docker
docker model run hf.co/monika-p/student-performance-slm:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use monika-p/student-performance-slm with Ollama:
ollama run hf.co/monika-p/student-performance-slm:F16
- Unsloth Desktop
- Docker Model Runner
How to use monika-p/student-performance-slm with Docker Model Runner:
docker model run hf.co/monika-p/student-performance-slm:F16
- Lemonade
How to use monika-p/student-performance-slm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull monika-p/student-performance-slm:F16
Run and chat with the model
lemonade run user.student-performance-slm-F16
List all available models
lemonade list
- Atomic Chat
Student Performance SLM
A 2,557,632-parameter decoder-only Transformer trained from scratch on records from the Student Performance - 1 Million Records dataset. It reads a student record card and answers short questions about that record (grade, study hours, attendance, participation).
This is a genuine language model - its own tokenizer, its own Transformer weights, exported to GGUF - not a tabular model renamed. Quantities are not predicted by the language model: the companion tabular model monika-p/student-performance-predictor owns all score predictions.
- Dataset: https://www.kaggle.com/datasets/kayhanh/student-performance-1-million
- Project code: https://github.com/monikapakalapati2007/Student-Performance-Intelligence-System1
- Predictor: monika-p/student-performance-predictor
SLM overview
| Property | Value |
|---|---|
| Type | Decoder-only causal Transformer (llama GGUF architecture) |
| Trained from scratch | Yes - random initialisation, no pretrained weights, no external text corpus |
| Parameters | 2,557,632 |
| Context length | 128 tokens |
| Vocabulary | 4,096 (byte-level BPE learned from this corpus) |
| Training corpus | Text serialisations of student records from the 1M dataset |
| Training rows | 20,000 (seeded subsample of the dataset's 700,000-row train split) |
| Checkpoint exported | best_model.pt (lowest validation loss) |
| GGUF file | student-performance-slm.f16.gguf, 6,816,320 bytes, float16 |
Architecture
| Component | Value |
|---|---|
| Layers | 4 |
| Attention heads | 4 (no grouped-query attention; 4 KV heads) |
Model width (d_model) |
192 |
| Feed-forward width | 512 |
| Normalisation | RMSNorm (pre-norm) |
| Positional encoding | Rotary Position Embeddings (RoPE, dim 48, base 10000) |
| Feed-forward | SwiGLU |
| Output head | Tied token embeddings |
| Dropout | 0.1 (disabled at inference) |
| Weight dtype | float32 checkpoint; float16 GGUF |
| Checkpoint size | 9.76 MB (fp32) |
Configuration (config.json):
{
"vocab_size": 4096,
"block_size": 128,
"n_layer": 4,
"n_head": 4,
"n_embd": 192,
"dropout": 0.1,
"tie_weights": true,
"arch": "decoder_only_rmsnorm_rope_swiglu"
}
Tokenizer
- Byte-level BPE, vocabulary 4,096, learned on the training documents only (3,837 merges).
- Special/control tokens: BOS, EOS and padding, stored in the GGUF metadata.
- The tokenizer is embedded in the GGUF;
tokenizer/is included for reproducibility and for loading the PyTorch checkpoint. - Documents use a fixed prompt format:
### Question and answer/Question: .../Answer: .../### End. The same format must be used at inference (Modelfiledoes this).
Verified training dataset
Only Student Performance - 1 Million Records is used, and nothing else.
Provenance chain verified from the run metadata:
- The discovery step examined the dataset's fixed split files - train 700,000,
validation 150,000, test 150,000 rows - and selected the largest consistent
family: the 1-million-record table with columns
student_id,weekly_self_study_hours,attendance_percentage,class_participation,total_score,grade. - A seeded subsample (seed 1337) was drawn per split for CPU training: 20,000 train / 2,000 validation / 2,000 test rows. Splits were never re-partitioned and never merged, so validation and test remain disjoint from training.
- Each row was serialised into a record card plus question-answer documents: 100,008 training documents (15,424,613 characters), 10,000 validation and 10,000 test documents.
This is a subset of the permitted dataset, not all 700,000 training rows: the training run was capped at 20,000 rows to fit a CPU budget. The model card states that explicitly rather than claiming a full-corpus run. No air-quality data, no exams dataset and no external corpus was used at any point.
Training methodology
Single-stage causal language modelling: next-token prediction over packed 128-token blocks, 119,463 training blocks (15,291,285 training tokens reported by the tokenizer stage of the run). Best checkpoint selected on validation loss, then evaluated once on the untouched test split.
| Setting | Value |
|---|---|
| Optimiser | AdamW |
| Learning rate | 2e-03 (min 1.5e-04) |
| Schedule | linear warmup + cosine decay, warmup 45 steps |
| Weight decay | 0.01 |
| Gradient clipping | 1.0 |
| Batch size | 16 (grad accumulation 1) |
| Block size | 128 |
| Steps / epochs | 900 steps - training stopped after epoch 1 of a 4-epoch budget |
| Eval interval | every 50 steps |
| Precision / device | float32 on CPU |
| Seed | 1337 |
| Training time | 27.0 minutes |
Actual training loss
| Stage | Loss | Perplexity | Token accuracy |
|---|---|---|---|
| Initial validation | 4.1723 | 64.87 | - |
| Best validation (step 900) | 0.178790 | 1.1958 | 0.9445 |
| Final epoch training loss | 0.185561 | - | 0.8726 |
| Held-out test | 0.178646 | 1.1956 | 0.9444 |
Held-out question answering (12 questions, 6 numeric and 6 grade questions):
| Metric | Value |
|---|---|
| Mean token F1 | 0.8667 |
| Exact match rate | 0.1667 |
| Mean numeric recall | 0.0000 |
| Unsupported numerals generated | 6 |
| Grade questions answered exactly | 2 / 6 |
The very low test loss reflects a small, highly repetitive corpus (record cards with a fixed template) that the model partly memorises; it is not evidence of general language ability.
GGUF model format
| Property | Value |
|---|---|
| File | student-performance-slm.f16.gguf |
| Size | 6,816,320 bytes |
| Format | GGUF v3 |
| Quantisation | float16 (general.file_type 1) |
| Architecture | llama |
| Tensors | 39 |
| Metadata keys | 23 |
| Context length | 128 |
| Verification | re-read with the reference gguf reader; tensor shapes and metadata validated at export |
| Weights | tensor data of the evaluated export (norm tensors widened f16 -> f32, lossless) |
GGUF metadata includes the tokenizer (4,096 tokens, 3,837 merges), RoPE base, RMSNorm epsilon and head counts, so the file is self-contained for llama.cpp/Ollama.
Inference instructions
Runtime status. The file loads and generates in Ollama 0.40 / llama.cpp after two
metadata fixes (pre-tokenizer name gpt-2; 1-D norm weights stored as f32). In our
local greedy-decoding test the generated text was incoherent, so this GGUF is an
experimental portability artifact: the metrics above were measured on the PyTorch
checkpoint, not through this file. Validate any use against the reference pipeline.
Ollama (Modelfile is included in this repository):
# 1. Put the GGUF and this Modelfile in the same folder, then:
ollama create student-performance-slm -f Modelfile
# 2. Ask a question in the format the model was trained on:
ollama run student-performance-slm "What is the grade for student 472468?"
For reference, the exact prompt the model was trained on is:
### Question and answer
Question: What is the grade for student 472468?
Answer: The grade is A.
llama.cpp directly:
llama-cli -m student-performance-slm.f16.gguf \
-p $'### Question and answer\nQuestion: What is the grade for student 472468?\nAnswer:' \
-n 64 --temp 0.2 --top-k 40
PyTorch checkpoint (needs the project's src/ modules, not shipped here) is the
way the model was evaluated; for normal use prefer the GGUF above.
Files
| Path | Description |
|---|---|
student-performance-slm.f16.gguf |
float16 GGUF weights, tokenizer embedded |
Modelfile |
Ollama definition with the exact training prompt format |
config.json |
Model hyperparameters |
tokenizer/vocab.json |
BPE vocabulary (4,096 tokens) |
tokenizer/merges.json |
3,837 BPE merges |
tokenizer/tokenizer_config.json |
Tokenizer settings |
The fp32 PyTorch checkpoints (best_model.pt, final_model.pt) are not
uploaded; the GGUF above is the exported, verified artifact.
Limitations
- Small training subset. The model saw 20,000 of the 700,000 training rows (a seeded CPU-budget subsample) in a single epoch; it is a compact proof of concept, not a production assistant.
- Memorisation, not generalisation. With 1.20 perplexity the model largely reproduces the template and record values it saw. Numeric recall on held-out records is 0.0: it does not reliably retrieve unseen students' values and can emit a plausible but wrong number (6 unsupported numerals in the sample).
- Record lookup only. It cannot compute, aggregate, compare students, or explain relationships; free-form questions degrade to a memorised answer template.
- No score prediction. Scores are the tabular model's job. This model repeats values present in text; it must never be treated as a predictor.
- Tiny context. 128 tokens - one record card plus a short question.
- GGUF runtime not validated for text quality. The GGUF loads in llama.cpp/Ollama, but generations obtained locally were incoherent; treat the GGUF as experimental and prefer the PyTorch checkpoint.
- English template only. The vocabulary was learned from this corpus, so text far from the training format is out of distribution.
- Synthetic data. Record values come from a synthetic Kaggle table; nothing here is evidence about real students.
- Not for high-stakes use. Do not use the generated text for admissions, grading or any decision about a person.
Links
- GitHub: https://github.com/monikapakalapati2007/Student-Performance-Intelligence-System1
- Predictor repository: monika-p/student-performance-predictor
- Downloads last month
- 85
16-bit