ducanhdinh / Macro-Nano-Instruct-MidAlign

huggingface.co
Total runs: 1.8K
24-hour runs: -185
7-day runs: -1.3K
30-day runs: -908
Model's Last Updated: August 29 2026

Introduction of Macro-Nano-Instruct-MidAlign

Model Details of Macro-Nano-Instruct-MidAlign

Macro-Nano-Instruct-MidAlign

LoRA adapter finetune tu ATH-MaaS/Marco-Nano-Instruct , mot mo hinh Mixture-of-Experts, theo baseline MidAlign (Middle-Layer Representation Alignment, Liu & Niehues 2025) — Alternate Training giua task objective (causal LM tren target language) va alignment objective (contrastive loss tai 1 middle layer) — adapt sang backbone MoE.

Cau hinh LoRA / Alignment
  • LoRA + trich xuat hidden state cho contrastive loss CHI ap dung tai layer thu 16 (0-indexed block = 15) trong tong so 28 layer.
  • Module duoc gan LoRA: attention , router , experts tai layer tren.
  • r = 16, alpha = 32, dropout = 0.05
  • Nhiet do contrastive tau = 0.1
Loss (Alternate Training — moi step chi 1 trong 2)
  • Task step : L_task = L_LM + lb_loss_coef * L_LB
    • L_LM : causal LM loss tren cau TARGET LANGUAGE (phia "other" trong cap english-other).
    • L_LB : load balancing loss chuan cua MoE tai router trong layer duoc finetune.
    • lb_loss_coef = None, num_experts = 232, top_k = 8
  • Align step : L_align = symmetric InfoNCE / contrastive loss (in-batch negatives) giua mean-pooled hidden state cua cau tieng Anh va cau target tai layer 16.
Du lieu

Cap bitext english-other duoc sample tu cac bo du lieu multiway-parallel: flores.json, bible.json, ntrex.json . Voi moi record, cau eng_Latn duoc ghep voi tung ngon ngu khac trong cung record de tao 1 cap bitext rieng.

Training
  • 3 epoch, batch_size = 64 (per-process).
  • Multi-GPU: DistributedDataParallel (torchrun), checkpoint chi giu ban moi nhat.
Diagnostics

Xem diagnostics/loss_log.jsonl (log theo tung step, phan biet step_type=task/align) va diagnostics/loss_curve.png .

Runs of ducanhdinh Macro-Nano-Instruct-MidAlign on huggingface.co

1.8K
Total runs
-185
24-hour runs
-621
3-day runs
-1.3K
7-day runs
-908
30-day runs

More Information About Macro-Nano-Instruct-MidAlign huggingface.co Model

More Macro-Nano-Instruct-MidAlign license Visit here:

https://choosealicense.com/licenses/apache-2.0

Macro-Nano-Instruct-MidAlign huggingface.co

Macro-Nano-Instruct-MidAlign huggingface.co is an AI model on huggingface.co that provides Macro-Nano-Instruct-MidAlign's model effect (), which can be used instantly with this ducanhdinh Macro-Nano-Instruct-MidAlign model. huggingface.co supports a free trial of the Macro-Nano-Instruct-MidAlign model, and also provides paid use of the Macro-Nano-Instruct-MidAlign. Support call Macro-Nano-Instruct-MidAlign model through api, including Node.js, Python, http.

Macro-Nano-Instruct-MidAlign huggingface.co Url

https://huggingface.co/ducanhdinh/Macro-Nano-Instruct-MidAlign

ducanhdinh Macro-Nano-Instruct-MidAlign online free

Macro-Nano-Instruct-MidAlign huggingface.co is an online trial and call api platform, which integrates Macro-Nano-Instruct-MidAlign's modeling effects, including api services, and provides a free online trial of Macro-Nano-Instruct-MidAlign, you can try Macro-Nano-Instruct-MidAlign online for free by clicking the link below.

ducanhdinh Macro-Nano-Instruct-MidAlign online free url in huggingface.co:

https://huggingface.co/ducanhdinh/Macro-Nano-Instruct-MidAlign

Macro-Nano-Instruct-MidAlign install

Macro-Nano-Instruct-MidAlign is an open source model from GitHub that offers a free installation service, and any user can find Macro-Nano-Instruct-MidAlign on GitHub to install. At the same time, huggingface.co provides the effect of Macro-Nano-Instruct-MidAlign install, users can directly use Macro-Nano-Instruct-MidAlign installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Macro-Nano-Instruct-MidAlign install url in huggingface.co:

https://huggingface.co/ducanhdinh/Macro-Nano-Instruct-MidAlign

Url of Macro-Nano-Instruct-MidAlign

Macro-Nano-Instruct-MidAlign huggingface.co Url

Provider of Macro-Nano-Instruct-MidAlign huggingface.co

ducanhdinh
ORGANIZATIONS

Other API from ducanhdinh

huggingface.co

Total runs: 361
Run Growth: 344
Growth Rate: 96.63%
Updated:November 24 2025