shazzadulimun commited on
Commit
85a508a
·
verified ·
1 Parent(s): 7125549

Rewrite README: full model card with proper dataset names, intended uses, eval, citations

Browse files
Files changed (1) hide show
  1. README.md +101 -0
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ language: [en]
5
+ base_model: meta-llama/Llama-3.1-70B-Instruct
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - aurora
9
+ - alcf
10
+ - hpc
11
+ - intel-gpu
12
+ - oneapi
13
+ - sycl
14
+ ---
15
+
16
+ # Llama-3.1-70B-Aurora-Chat v3
17
+
18
+ LoRA fine-tune of [`meta-llama/Llama-3.1-70B-Instruct`](https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct) specialized for the
19
+ [**ALCF Aurora supercomputer**](https://docs.alcf.anl.gov/aurora/) (Intel Xeon Sapphire
20
+ Rapids + Intel GPU Max 1550 / Ponte Vecchio, oneAPI / SYCL, PBS Pro).
21
+
22
+ Off-the-shelf code-LLMs hallucinate Aurora specifics — they suggest `nvcc` instead of
23
+ `icpx -fsycl`, `srun` / `aprun` instead of `mpiexec`, NERSC's `/global/cfs` instead of
24
+ `/lus/flare`, and CUDA device strings instead of `xpu`. This adapter teaches the base
25
+ model the actual Aurora toolchain, file system layout, scheduler conventions, and
26
+ recommended PyTorch/TensorFlow/SYCL idioms.
27
+
28
+ ## Model summary
29
+
30
+ | | |
31
+ |---|---|
32
+ | **Base model** | [`meta-llama/Llama-3.1-70B-Instruct`](https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct) |
33
+ | **Format** | Merged 16-bit — HuggingFace Transformers / vLLM / TGI |
34
+ | **Fine-tuning** | LoRA (PEFT) — r=32, α=64, dropout 0.0, 2 epochs |
35
+ | **Optimizer** | AdamW fused, lr 2e-4 cosine, warmup 3%, batch 1 × grad-accum 8 |
36
+ | **Precision / seq-len** | bf16, 1,536 tokens |
37
+ | **Training data** | [`aurora-docs-distill-multirank`](https://github.com/SIslamMun/Generator/tree/aurora-datasets-2026-04-30/datasets/aurora/iter2/data/training/A) — 4,495 ChatML rows |
38
+ | **Train loss (final)** | 0.5800 |
39
+ | **Hardware** | Aurora node, model-parallel across 1–12 PVC tiles via HF `device_map='auto'`, IPEX + PyTorch 2.10 XPU backend |
40
+ | **Eval (53-Q Aurora, 0–5)** | pending |
41
+
42
+ ## Quick start
43
+
44
+ ```python
45
+ from transformers import AutoModelForCausalLM, AutoTokenizer
46
+ import torch
47
+
48
+ tok = AutoTokenizer.from_pretrained("shazzadulimun/llama31-70b-aurora-chat-v3")
49
+ mdl = AutoModelForCausalLM.from_pretrained("shazzadulimun/llama31-70b-aurora-chat-v3", torch_dtype=torch.bfloat16, device_map="auto")
50
+
51
+ msgs = [{"role": "user", "content": "How do I launch one MPI rank per Aurora GPU tile?"}]
52
+ ids = tok(tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True), return_tensors="pt").to(mdl.device)
53
+ print(tok.decode(mdl.generate(**ids, max_new_tokens=400, temperature=0.0)[0][ids.input_ids.shape[1]:], skip_special_tokens=True))
54
+ ```
55
+
56
+
57
+ ## Training data
58
+
59
+ Distilled from `openai/gpt-oss-120b on ALCF Sophia (vLLM)` over 416 cleaned chunks of
60
+ [`docs.alcf.anl.gov/aurora`](https://docs.alcf.anl.gov/aurora/). 4,495
61
+ training rows + 562 validation rows in ChatML format with embedded
62
+ chain-of-thought (`**Reasoning:**` / `**Answer:**`).
63
+
64
+ **Broad coverage, parallel-rank distillation.** 20 worker ranks each took a *disjoint* slice (~21 chunks) of the cleaned `docs.alcf.anl.gov/aurora` corpus and asked the teacher for chain-of-thought QA pairs. Disjoint slicing maximizes phrasing diversity (each rank sees fresh context) while still covering every chunk exactly once.
65
+
66
+ Full corpus + reproduction scripts:
67
+ [**SIslamMun/Generator @ aurora-datasets-2026-04-30**](https://github.com/SIslamMun/Generator/tree/aurora-datasets-2026-04-30/datasets/aurora/iter2/data/training/A).
68
+
69
+ ## Evaluation
70
+
71
+ Part of the v3 parameter-size sweep (1B → 120B trained on the same dataset).
72
+ Holdout scorecard appears here once the full sweep completes.
73
+
74
+ ## Limitations
75
+
76
+ - **Synthetic-data biases.** Teacher (`gpt-oss-120b`) can confabulate plausible-looking
77
+ but incorrect commands. Treat outputs as a verifiable first draft, not authoritative.
78
+ - **Doc snapshot is fixed at 2026-04-29.** Module versions, queue names, and APIs change
79
+ — anything published after that date isn't reflected here.
80
+ - **Aurora-only.** Specifics (`/lus/flare`, `xpu`, PBS queues) won't transfer to Frontier,
81
+ Polaris, or other systems.
82
+ - **Use temperature ≤ 0.1** for technical answers; higher temps invite invented flag names
83
+ and paths.
84
+
85
+ ## Citation
86
+
87
+ ```bibtex
88
+ @misc{aurora-llms-2026,
89
+ title = { Llama-3.1-70B-Aurora-Chat v3 },
90
+ author = { Islam Mun, Shazzadul },
91
+ year = { 2026 },
92
+ url = { https://huggingface.co/shazzadulimun/llama31-70b-aurora-chat-v3 },
93
+ note = { LoRA fine-tune of Llama-3.1-70B-Instruct; data distilled from gpt-oss-120b on docs.alcf.anl.gov/aurora }
94
+ }
95
+ ```
96
+
97
+ ## License
98
+
99
+ Apache-2.0 for the adapter weights and synthetic training data. Source corpus is public
100
+ ALCF user documentation. Base model retains its own license — see
101
+ [`meta-llama/Llama-3.1-70B-Instruct`](https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct).