Update README.md
Browse files7 unmodified lines8910111112131314151617181920212223242526272829301718192021222324252627282930313233343435363637383938404142434445464748495051525354554041424344454647484956575158595360615556576263646566676869707172735974757677787963808165828367848569868788899091719293739495757677787980969798991001011021031041051061071088210911084111112113114115116117118119120121861221238812412590919293949596979812612710012812910210310410510610713013113213311113413511311411511611711811912012113613712313813912514014114214314414514614714814915015115215312715415512915615715815916016116216313116416513316616716816917017117217317417517617717817918013518118218318413718518618713918818914119019119219319419519619719819920014520120214720320420520620720815320921021121210 unmodified lines2232242251702262272282292 unmodified lines23223323417918023518118218323623723818718818919023924024124210 unmodified lines2532542552072562572092582592602618 unmodified lines2702712722242732742752762262772782792802812822832282842852302312322332342862872362882892902912922932942402952962972982442452462472993003013023033043057 unmodified lines---# Archaea-74M
Archaea-74M is a small decoder-only transformer language model trained on BetterDataset-2M.Archaea-74M is a decoder-only causal language model with approximately 74 million parameters, pretrained from scratch on [BetterDataset-2M](https://huggingface.co/datasets/GODELEV/BetterDataset-2M). The model uses a LLaMA-style architecture with Grouped Query Attention (GQA) and was trained using bfloat16 mixed precision with `torch.compile` enabled.
The project focuses on efficient pretraining of a compact language model using a curated multi-source dataset and a modern transformer architecture with Grouped Query Attention (GQA).Training was stopped at 18,800 of a planned 25,000 steps to allow for architecture and data pipeline iteration in future runs.
---
# Model Information
| Attribute | Value || ----------------- | --------------------------------- || Model Name | Archaea-74M || Parameters | ~74M || Architecture | Decoder-Only Transformer || Base Architecture | LLaMA-style || Attention | Grouped Query Attention (GQA) || Dataset | BetterDataset-2M || Context Length | 1024 || Vocabulary | GPT-2 Tokenizer (~50k vocabulary) || Framework | PyTorch + Transformers || License | Apache-2.0 |## Model Card
| Attribute | Value ||---|---|| Model ID | `GODELEV/Archaea-74M` || Parameters | ~74 million || Architecture | Decoder-only Transformer (LLaMA-style) || Attention | Grouped Query Attention (GQA) || Context Length | 1024 tokens || Tokenizer | GPT-2 (~50,257 vocabulary) || Training Precision | bfloat16 Mixed Precision || License | Apache-2.0 || Framework | PyTorch + HuggingFace Transformers |
---# Archaea-74M
# ArchitectureArchaea-74M is a decoder-only causal language model with approximately 74 million parameters, pretrained from scratch on [BetterDataset-2M](https://huggingface.co/datasets/GODELEV/BetterDataset-2M). The model uses a LLaMA-style architecture with Grouped Query Attention (GQA) and was trained using bfloat16 mixed precision with `torch.compile` enabled.
Archaea-74M uses a decoder-only transformer architecture implemented with `LlamaForCausalLM`.Training was stopped at 18,800 of a planned 25,000 steps to allow for architecture and data pipeline iteration in future runs.
---
## Configuration## Model Card
| Attribute | Value ||---|---|| Model ID | `GODELEV/Archaea-74M` || Parameters | ~74 million || Architecture | Decoder-only Transformer (LLaMA-style) || Attention | Grouped Query Attention (GQA) || Context Length | 1024 tokens || Tokenizer | GPT-2 (~50,257 vocabulary) || Training Precision | bfloat16 Mixed Precision || License | Apache-2.0 || Framework | PyTorch + HuggingFace Transformers |
---
| Parameter | Value || ----------------- | ----- || Hidden Size | 512 || Intermediate Size | 1408 || Layers | 8 || Attention Heads | 8 || KV Heads | 2 || Context Length | 1024 || Activation | SiLU || RMSNorm Epsilon | 1e-5 |## Architecture
## Attention SystemArchaea-74M implements `LlamaForCausalLM` with the following configuration:
The model uses Grouped Query Attention (GQA):### Transformer Configuration
* Query Heads: 8* Key/Value Heads: 2* GQA Ratio: 4:1| Parameter | Value ||---|---|| Hidden Size | 512 || Intermediate Size | 1408 || Number of Layers | 8 || Attention Heads | 8 || KV Heads (GQA) | 2 || GQA Ratio | 4:1 || Activation Function | SiLU || Normalization | RMSNorm (eps = 1e-5) || Context Length | 1024 tokens |
This configuration reduces memory requirements while maintaining efficient attention computation.### Grouped Query Attention
The model uses Grouped Query Attention with 8 query heads mapped to 2 key/value heads (a 4:1 ratio). This reduces KV cache memory footprint at inference time relative to standard multi-head attention while preserving representational capacity in the query projection.
---
# Dataset## Training
## BetterDataset-2M### Dataset
Dataset:Archaea-74M was trained on [BetterDataset-2M](https://huggingface.co/datasets/GODELEV/BetterDataset-2M), a multi-source corpus assembled from:
https://huggingface.co/datasets/GODELEV/BetterDataset-2M- General web text- Conversational data- Instruction-oriented samples- Knowledge-focused content- Technical and code-related text
Archaea-74M was trained on BetterDataset-2M, a custom dataset assembled from multiple text sources into a unified corpus.Samples were tokenized using the GPT-2 tokenizer and packed into contiguous 1024-token sequences.
The dataset contains a mixture of:### Optimization
* General text* Conversational data* Instruction-oriented samples* Knowledge-focused content* Technical text* Code-related content| Parameter | Value ||---|---|| Optimizer | AdamW || Learning Rate Scheduler | OneCycleLR || Peak Learning Rate | 6e-4 || Weight Decay | 0.1 || Gradient Clipping | 1.0 || Sequence Length | 1024 || Micro Batch Size | 16 || Gradient Accumulation Steps | 8 || Effective Batch Size | 128 || Compilation | `torch.compile` |
The training pipeline automatically identifies the text field and tokenizes samples using the GPT-2 tokenizer before packing them into contiguous 1024-token sequences.### Training Statistics
---| Metric | Value ||---|---|| Total Steps Trained | 18,800 / 25,000 || Initial Loss | 10.9223 || Final Loss | 2.9488 || Best Loss | 2.8071 || Final Perplexity | 19.08 || Best Perplexity | 16.56 |
### Training Loss Curve
# Training Configuration<img src="Archaea74M_Training_Loss_Curve.png" width="600"/>
## OptimizationThe curve shows the raw per-step loss alongside a smoothed moving average. The loss decrease is consistent throughout training with no notable instability or divergence events.
| Parameter | Value || ----------------- | ------------------------ || Optimizer | AdamW || Scheduler | OneCycleLR || Learning Rate | 6e-4 || Weight Decay | 0.1 || Gradient Clipping | 1.0 || Precision | bfloat16 Mixed Precision || Compilation | torch.compile |### Learning Rate Schedule
## Batch Configuration<img src="Archaea74M_Learning_Rate_Schedule.png" width="600"/>
| Parameter | Value || --------------------------- | ----- || Sequence Length | 1024 || Micro Batch Size | 16 || Gradient Accumulation Steps | 8 || Effective Batch Size | 128 |OneCycleLR applies a linear warmup phase followed by cosine annealing decay to a minimum learning rate. The warmup phase stabilizes early training before the peak learning rate is reached.
---
# Training Statistics## Evaluation
| Metric | Value || ------------------- | ------- || Total Steps Trained | 18,800 || Planned Steps | 25,000 || Initial Loss | 10.9223 || Final Loss | 2.9488 || Best Loss | 2.8071 || Final Perplexity | 19.08 || Best Perplexity | 16.56 |Archaea-74M was evaluated using [EleutherAI lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) on an NVIDIA L4 GPU (24 GB VRAM) in float16 precision. Full datasets were used with no sample limits. Evaluation was conducted on 2026-06-01.
Training was stopped before the planned completion point in order to continue experimentation and improvements in future training runs.### Per-Task Results
---| Benchmark | Few-Shot | Metric | Score | Stderr ||---|---|---|---|---|| HellaSwag | 10 | acc\_norm | 27.16% | ±0.44% || PIQA | 0 | acc\_norm | 58.60% | ±1.15% || WinoGrande | 5 | acc | 51.14% | ±1.41% || BoolQ | 0 | acc | 56.30% | ±0.87% || ARC-Easy | 25 | acc\_norm | 40.11% | ±1.01% || ARC-Challenge | 25 | acc\_norm | 23.04% | ±1.23% || OpenBookQA | 0 | acc\_norm | 26.00% | ±1.96% || CommonsenseQA | 7 | acc | 18.84% | ±1.12% || LAMBADA (OpenAI) | 0 | acc | 18.05% | ±0.54% || BLiMP | 0 | acc | 74.89% | ±0.14% || MMLU | 5 | acc | 25.07% | ±0.36% |
# Training Visualizations### Category Averages
## Training Loss Curve| Category | Benchmarks Included | Average Score ||---|---|---|| Commonsense / NLI | HellaSwag, PIQA, WinoGrande, BoolQ, ARC-Easy, ARC-Challenge, OpenBookQA, CommonsenseQA | 37.65% || Language Modelling | LAMBADA (OpenAI) | 18.05% || Linguistic | BLiMP | 74.89% || Knowledge | MMLU | 25.07% || **Overall Average** | All above | **38.11%** |
### Benchmark Score Distribution
The figure above shows the complete training trajectory, including the raw loss values and a smoothed moving-average trend.```HellaSwag [=======·····················] 27.16%PIQA [================············] 58.60%WinoGrande [==============··············] 51.14%BoolQ [===============·············] 56.30%ARC-Easy [===========·················] 40.11%ARC-Challenge [======······················] 23.04%OpenBookQA [=======·····················] 26.00%CommonsenseQA [=====·······················] 18.84%LAMBADA [=====·······················] 18.05%BLiMP [======================······] 74.89%MMLU [=======·····················] 25.07% 0% 25% 50% 75% 100%```
---### Notes on Failed Tasks
Two tasks could not be evaluated due to infrastructure issues unrelated to the model:
## Learning Rate Schedule- `social_iqa` — HuggingFace deprecated the `social_i_qa.py` dataset loading script. Re-evaluation pending.- `arithmetic_2digit` — Task name has been renamed in the current version of lm-eval. Re-evaluation pending with the updated task identifier.
### Evaluation Environment
The model was trained using AdamW with a OneCycleLR scheduler featuring an initial warmup phase followed by gradual decay.```Framework : EleutherAI lm-evaluation-harnessHardware : NVIDIA L4 (24 GB VRAM), Google ColabPrecision : float16Batch Size : 8Limit : None (full datasets)Runtime : ~36 minutes```
---
# Usage## Usage
## Installation### Installation
```bashpip install torch transformers```
## Loading the Model### Loading the Model
```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM10 unmodified lines)```
## Text Generation### Text Generation
```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM2 unmodified linesmodel_id = "GODELEV/Archaea-74M"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto") model_id, device_map="auto")
prompt = "The future of artificial intelligence"
inputs = tokenizer( prompt, return_tensors="pt").to(model.device)inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad(): output = model.generate(10 unmodified lines
---
# Repository Structure## Repository Structure
```text```Archaea-74M/├── config.json├── generation_config.json8 unmodified lines
---
# Limitations## Limitations
Archaea-74M is a base pretrained model. It has not undergone instruction tuning, RLHF, preference optimization, or any alignment procedure. The following limitations apply:
Archaea-74M is a pretrained base model and has not undergone instruction tuning, preference optimization, or extensive benchmark evaluation.- Outputs may contain hallucinated or factually incorrect content- Reasoning capability is constrained by the model's size and training duration (18,800 steps of a planned 25,000)- Factual accuracy is inconsistent, particularly on knowledge-intensive tasks (MMLU: 25.07%)- The model is sensitive to prompt phrasing; small changes in input can produce substantially different outputs- Context length is fixed at 1024 tokens; inputs longer than this will be truncated- The model should not be used for medical, legal, financial, or safety-critical applications
Known limitations include:---
* Hallucinations* Limited reasoning capability compared to larger models* Inconsistent factual accuracy* Sensitivity to prompt wording* Limited evaluation coverage## Future Work
The model should not be used for medical, legal, financial, or safety-critical decision making.- Instruction fine-tuning on a curated supervised dataset- Re-evaluation on `social_iqa` and `arithmetic` once dataset/task compatibility is resolved- Context length extension beyond 1024 tokens- Evaluation on additional benchmarks relevant to the SLM category
---
# Citation## Citation
```bibtex@misc{archaea74m, title={Archaea-74M}, author={Akshit Kumar}, year={2026}, publisher={Hugging Face} title = {Archaea-74M}, author = {Akshit Kumar}, year = {2026}, publisher = {Hugging Face}, url = {https://huggingface.co/GODELEV/Archaea-74M}}```README.md+172-116