Team 9 - College Data Intelligence SLM (trained from scratch)
A 6.3M-parameter Qwen3-style language model trained from scratch (no pretrained weights) on our college-program dataset (999 program records, split by institution into train / validation / test).
It reads a program record (institution, program, credential, tuition, median earnings, median debt, linked occupation, occupation wage, AI tools) and answers questions about it. When a value is missing it answers "Not reported in the dataset.".
Architecture
Decoder-only transformer: RoPE, Grouped Query Attention with QK-norm, SwiGLU, RMSNorm (as in Qwen3).
Config: {"vocab_size": 3036, "d_model": 256, "n_heads": 8, "n_kv_groups": 4, "n_layers": 6, "d_ff": 768, "max_seq_len": 192}. Byte-level BPE tokenizer with 3036 tokens trained on our data.
Training
3000 iterations, batch 32, AdamW lr 0.001 -> 0.0001 (warm-up + cosine), loss on answer tokens only. Best validation loss: 1.8569.
Held-out test results (institutions never seen in training)
Test loss: 1.8998
| Example type | Examples | Exact match | Token F1 |
|---|---|---|---|
| full_record | 2160 | 0.470 | 0.517 |
| not_reported | 299 | 0.967 | 0.967 |
| original | 1080 | 0.555 | 0.598 |
| ALL | 3539 | 0.538 | 0.579 |
How to use
from huggingface_hub import hf_hub_download
from tokenizers import Tokenizer
import importlib.util, torch
repo = "sree02200/team9-college-data-slm"
spec = importlib.util.spec_from_file_location("college_slm_model", hf_hub_download(repo, "college_slm_model.py"))
mod = importlib.util.module_from_spec(spec); spec.loader.exec_module(mod)
model = mod.Qwen3SLM.from_pretrained(repo).eval()
tok = Tokenizer.from_file(hf_hub_download(repo, "tokenizer.json"))
prompt = "Context: Institution: Example College | Program: Registered Nursing | Median student debt: $21,500\nQuestion: What is the median student debt for this program?\nAnswer:"
ids = [tok.token_to_id("<|bos|>")] + tok.encode(prompt).ids
out = model.generate(torch.tensor([ids]), 32, greedy=True, eos_token_id=tok.token_to_id("<|eos|>"))
print(tok.decode(out[0, len(ids):].tolist()).replace("<|eos|>", "").strip())
Limitations
Student prototype. QA pairs are generated from structured data; answers are only as good as the record retrieved. It cannot answer questions outside the dataset (campus facilities, placements, job guarantees, individual salary predictions). Missing values are reported as missing, never as zero. Not financial or admissions advice.
- Downloads last month
- 40
