GIBC-43M
A 42,968,576-parameter decoder-only language model trained from random initialization on a single 6 GB laptop GPU (NVIDIA RTX 3050) for the GIBC V2 Track 01 challenge, which has a limit of 50M trainable parameters. It is a base model: plain next-token prediction, with no instruction or safety tuning.
Code, training logs and the full evaluation record: https://github.com/sourin-git/gibc-v2
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("<this repository or local folder>")
model = AutoModelForCausalLM.from_pretrained("<this repository or local folder>")
inputs = tok("Photosynthesis is the process by which", return_tensors="pt")
torch.manual_seed(0)
out = model.generate(**inputs, max_new_tokens=30, do_sample=True, temperature=0.8, top_k=50,
pad_token_id=tok.eos_token_id)
print(tok.decode(out[0], skip_special_tokens=True))
- Context: keep inputs at or below 512 tokens, the trained context length.
- Tokenizer: it has no BOS token.
<|endoftext|>(id 0) is the end-of-text marker, and it is also used as the padding id.split_special_tokensis enabled, so literal<|endoftext|>text in your input is encoded as ordinary text, matching how the model was trained.
Model
| Architecture | LlamaForCausalLM: 9 layers, hidden 512, 8 heads (head dim 64), SwiGLU 1,536, RoPE θ = 10,000 (unscaled), RMSNorm eps 1e-5, no biases |
| Vocabulary / context | 24,000 (byte-level BPE trained from scratch) / 512 |
| Parameters | 42,968,576 unique trainable. The output head is tied to the input embedding: lm_head.weight is not stored separately, and counting tensors by name would double-count it (55,256,576). |
| Weights | model.safetensors, float32 |
Training
- Data: FineWeb-Edu
sample-10BT, revision87f09149ef4734204d70ed1d046ddc9ca3f2b8f9(English educational web text, ODC-By 1.0). - Filtering: documents whose URL host is
wikipedia.orgor a subdomain were excluded before tokenizer training and corpus building. This is not complete decontamination. - Targets: 1,000,013,824 prediction targets (61,036 steps × 16,384), drawn in one seeded, no-replacement pass over 1.1B prepared tokens.
- Precision and batch: bf16 autocast; micro-batch 8 × 512 × gradient accumulation 4.
- Optimizer: fused AdamW (β 0.9/0.95, weight decay 0.1, clip 1.0).
- Learning rate: peak 1e-3, 256 warmup steps, cosine decay to 1e-4.
- Time: 15.76 h in training steps (15.87 h wall), about 17.6k targets/s, peak 3,167 MiB allocated. 0 skipped or non-finite steps.
- Final internal validation (held-out FineWeb-Edu): loss 3.4574, perplexity 31.74. This is not a benchmark.
Evaluation
All tasks were run with lm-evaluation-harness 0.4.13, 0-shot, full splits, float32, 512-token context, on this exported model.
| Task | acc | acc_norm | Random chance |
|---|---|---|---|
| HellaSwag (10,042) | 0.2711 ± 0.0044 | 0.2806 ± 0.0045 | 0.2500 |
| ARC-Easy (2,376) | 0.4280 ± 0.0102 | 0.3927 ± 0.0100 | 0.2502 |
| PIQA (1,838) | 0.5974 ± 0.0114 | 0.5860 ± 0.0115 | 0.5000 |
| WinoGrande (1,267) | 0.5067 ± 0.0141 | n/a | 0.5000 |
WikiText-103 test token perplexity under the documented project methodology: 46.245. This covers
303,524 tokens under this model's own tokenizer, scored with rolling 512-token windows at stride 256
and with the rows of wikitext-103-raw-v1 test (revision
b08601e04326c79dfdd32d625aee71d232d685c3) concatenated unchanged. It is a per-token perplexity,
not word perplexity, and is not comparable with other tokenizers.
Verification and provenance
export_manifest.json: the source training checkpointfinal_step_0061036.pt(SHA-2564f28fc9d3ebfa97a415afe27115aac485496681d4fc324f91889f5b938c3e349), training counters, config, tokenizer hash, and library versions (transformers 5.17.0, torch 2.14.0+cu126).verification_report.json: a fresh-process check that this export matches the source checkpoint:- 42,968,576 unique parameters, with the tie intact;
- all 84 weight tensors equal;
- tokenizer parity on 305 texts;
- logits max |diff| 0.0 on CPU and 4.0e-5 on CUDA;
- lm-eval log-likelihood parity within 3.8e-6.
- Local paths: these two files are sanitized copies, with local absolute paths replaced by the
artifact names
final_step_0061036.ptandproduction_step_0061036/. - Tokenizer file:
tokenizer.jsonhere is the Hugging Face serialization of the project tokenizer (whose original file has SHA-25640f595fb…c4f7689). The two produce identical token ids (verified).
Limitations
- Generation: it is weak. Greedy decoding repeats itself, and sampled text is fluent but often factually or logically wrong.
- Benchmarks: WinoGrande is at chance, and HellaSwag is only slightly above it.
- Scope: 43M parameters, a 512-token context, English only, and one training run with no seed repeats.
- Contamination: web data may still contain text overlapping with the benchmarks or WikiText.
- Safety: no safety evaluation was performed, and there is no content filtering. The model may reproduce biased or false statements from web text. Don't use it for factual, advisory or high-stakes purposes.
Development
Built with AI coding assistance: Claude Code (Opus 5.5) for implementation, ChatGPT as technical lead and reviewer, Codex / GPT "Astra" for review and compliance audits, and Context7 MCP for documentation lookup. The model and its weights were trained by the project's own code; no pretrained weights, fine-tuning or distillation were used.
License
No license has been chosen yet. The training data (FineWeb-Edu) is ODC-By 1.0, subject to Common Crawl's terms of use.