Text Generation
Transformers
Safetensors
English
llama
aurora
alcf
hpc
intel-gpu
oneapi
sycl
conversational
text-generation-inference
Instructions to use shazzadulimun/llama32-3b-aurora-chat-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shazzadulimun/llama32-3b-aurora-chat-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shazzadulimun/llama32-3b-aurora-chat-v3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shazzadulimun/llama32-3b-aurora-chat-v3") model = AutoModelForCausalLM.from_pretrained("shazzadulimun/llama32-3b-aurora-chat-v3", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shazzadulimun/llama32-3b-aurora-chat-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shazzadulimun/llama32-3b-aurora-chat-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shazzadulimun/llama32-3b-aurora-chat-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shazzadulimun/llama32-3b-aurora-chat-v3
- SGLang
How to use shazzadulimun/llama32-3b-aurora-chat-v3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "shazzadulimun/llama32-3b-aurora-chat-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shazzadulimun/llama32-3b-aurora-chat-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "shazzadulimun/llama32-3b-aurora-chat-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shazzadulimun/llama32-3b-aurora-chat-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shazzadulimun/llama32-3b-aurora-chat-v3 with Docker Model Runner:
docker model run hf.co/shazzadulimun/llama32-3b-aurora-chat-v3
Rewrite README: full model card with proper dataset names, intended uses, eval, citations
Browse files
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.2-3B-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.2-3B-Aurora-Chat v3
|
| 17 |
+
|
| 18 |
+
LoRA fine-tune of [`meta-llama/Llama-3.2-3B-Instruct`](https://huggingface.co/meta-llama/Llama-3.2-3B-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.2-3B-Instruct`](https://huggingface.co/meta-llama/Llama-3.2-3B-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.7200 |
|
| 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/llama32-3b-aurora-chat-v3")
|
| 49 |
+
mdl = AutoModelForCausalLM.from_pretrained("shazzadulimun/llama32-3b-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.2-3B-Aurora-Chat v3 },
|
| 90 |
+
author = { Islam Mun, Shazzadul },
|
| 91 |
+
year = { 2026 },
|
| 92 |
+
url = { https://huggingface.co/shazzadulimun/llama32-3b-aurora-chat-v3 },
|
| 93 |
+
note = { LoRA fine-tune of Llama-3.2-3B-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.2-3B-Instruct`](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct).
|