Views
No views yet
tiktoken p50k_base| Variant | Parameters | d_model | Heads | GQA (KV heads) | Blocks |
|---|---|---|---|---|---|
| 303M | ~303M | 1024 | 16 | 4 | 24 |
| 401M | ~401M | 1024 | 32 | 4 | 24 |
Both variants use the same architectural template; the 401M model increases attention width while preserving GQA.
| Item | Value |
|---|---|
| Dataset | japhba/pubmed_simple |
| Text field | abstract |
| Domain | Biomedical / medical research |
| Cleaning | Minimal (raw abstracts) |
| Sequence length | 1,024 |
| Sliding window stride | 512 |
| Item | Value |
|---|---|
| Objective | Causal language modeling (next-token prediction) |
| Optimizer | AdamW |
| Betas | (0.9, 0.95) |
| Precision | bf16 |
| Gradient accumulation | Enabled |
| Gradient clipping | 1.0 |
| Effective batch size | 128 |
checkpoints/ directory contains multiple snapshots of the same model variants at different training stages.checkpoint_step_25000.pt (303M) → ~2.5B tokens seen⚠️ Important:
All released checkpoints are early-stage pretraining snapshots.
At ~2.5B tokens (~8× tokens/parameter for 303M), the models are undertrained and should not be treated as finished base models.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3repo_id = "kunjcr2/MedAssistGPT-303M" # or 401M repo
4
5tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(repo_id, trust_remote_code=True)
7
8prompt = "A patient was admitted with severe headache. Initial assessment revealed"
9inputs = tokenizer(prompt, return_tensors="pt")
10
11outputs = model.generate(
12 **inputs,
13 max_new_tokens=100,
14 temperature=0.7,
15)
16print(tokenizer.decode(outputs[0], skip_special_tokens=True))