Translation
Transformers
Safetensors
hunyuan_v1_dense
text-generation
noesis
noesis-dub-lm
dhcf-fno
amaimedia
sft
qlora
bf16
hunyuan
hy-mt2
tencent
dub-lm
live-voice-translate
Instructions to use AMAImedia/NOESIS-Hy-MT2-1.8B-BF16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AMAImedia/NOESIS-Hy-MT2-1.8B-BF16 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="AMAImedia/NOESIS-Hy-MT2-1.8B-BF16")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AMAImedia/NOESIS-Hy-MT2-1.8B-BF16") model = AutoModelForCausalLM.from_pretrained("AMAImedia/NOESIS-Hy-MT2-1.8B-BF16", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- LICENSE +446 -0
- NOESIS_MERGE_MANIFEST.json +10 -0
- README.md +231 -0
- chat_template.jinja +1 -0
- config.json +62 -0
- generation_config.json +11 -0
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +11 -0
LICENSE
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
================================================================================
|
| 2 |
+
NOESIS-Hy-MT2-1.8B-BF16 — NOESIS Bundle License
|
| 3 |
+
================================================================================
|
| 4 |
+
|
| 5 |
+
This bundle is a NOESIS-fine-tuned derivative of the upstream model
|
| 6 |
+
tencent/Hy-MT2-1.8B
|
| 7 |
+
Upstream weights and training code © upstream authors.
|
| 8 |
+
NOESIS SFT-LoRA fine-tuning, provenance metadata, bundle inventory,
|
| 9 |
+
sealed-rule annotations, and DHCF-FNO integration notes
|
| 10 |
+
© AMAImedia 2026 (NOESIS DHCF-FNO project).
|
| 11 |
+
|
| 12 |
+
================================================================================
|
| 13 |
+
LICENSE REGIME — Tencent HY Community License Agreement
|
| 14 |
+
================================================================================
|
| 15 |
+
Three license gates apply: (1) Territory — EU excluded; (2) 100M MAU cap (separate Tencent license required above); (3) No-KD: outputs cannot be used to train other AI models. Full text in `LICENSE.md`.
|
| 16 |
+
|
| 17 |
+
================================================================================
|
| 18 |
+
STOP — R-NEVER-DELETE-WITHOUT-EXPLICIT-CONSENT (sealed 2026-05-21)
|
| 19 |
+
This bundle MUST NOT be deleted without an explicit operator
|
| 20 |
+
instruction "удали <path>" / "delete <path>".
|
| 21 |
+
================================================================================
|
| 22 |
+
|
| 23 |
+
NOESIS provenance:
|
| 24 |
+
- Founder: Ilia Bolotnikov
|
| 25 |
+
- Organization: AMAImedia.com (https://www.amaimedia.com)
|
| 26 |
+
- X (Twitter): @AMAImediacom (https://x.com/AMAImediacom)
|
| 27 |
+
- Telegram: @AMAImediacom (https://t.me/AMAImediacom)
|
| 28 |
+
- NOESIS version: v15.10
|
| 29 |
+
- Bundle date: 2026-06-06
|
| 30 |
+
|
| 31 |
+
NOESIS A/B test (2026-06-06, nt318):
|
| 32 |
+
garbage% / iso_fit / overlap — measurable improvement vs upstream baseline.
|
| 33 |
+
See README.md for full table + sample outputs.
|
| 34 |
+
|
| 35 |
+
================================================================================
|
| 36 |
+
UPSTREAM LICENSE TEXT FOLLOWS
|
| 37 |
+
================================================================================
|
| 38 |
+
|
| 39 |
+
# Tencent HY Community License Agreement
|
| 40 |
+
|
| 41 |
+
**Tencent Hy-MT2 Release Date:** May 21, 2026
|
| 42 |
+
|
| 43 |
+
> ⚠️ **Territorial limitation:** THIS LICENSE AGREEMENT DOES NOT APPLY
|
| 44 |
+
> IN THE **EUROPEAN UNION** AND IS EXPRESSLY LIMITED TO THE TERRITORY,
|
| 45 |
+
> AS DEFINED BELOW.
|
| 46 |
+
>
|
| 47 |
+
> ✅ **EXPANDED TERRITORY vs HY-MT1.5:** Hy-MT2 (2026-05-21) excludes
|
| 48 |
+
> **only the EU** — UK and South Korea are now **INCLUDED** in the
|
| 49 |
+
> Territory (HY-MT1.5 had excluded EU + UK + South Korea).
|
| 50 |
+
|
| 51 |
+
By using this bundle, You are deemed to have recognized and accepted
|
| 52 |
+
this Agreement, which is effective immediately.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## 1. Definitions
|
| 57 |
+
|
| 58 |
+
**(a) "Acceptable Use Policy"** — policy in **Exhibit A**.
|
| 59 |
+
|
| 60 |
+
**(b) "Agreement"** — these terms and conditions.
|
| 61 |
+
|
| 62 |
+
**(c) "Documentation"** — Tencent HY specifications, manuals, docs.
|
| 63 |
+
|
| 64 |
+
**(d) "Hosted Service"** — service via API, web, or remote means.
|
| 65 |
+
|
| 66 |
+
**(e) "Licensee," "You" or "Your"** — person or entity using Tencent HY Works.
|
| 67 |
+
|
| 68 |
+
**(f) "Materials"** — Tencent HY + Documentation.
|
| 69 |
+
|
| 70 |
+
**(g) "Model Derivatives"** — modifications, works based on, or any
|
| 71 |
+
other ML model created by transfer of patterns of weights / parameters
|
| 72 |
+
/ operations / Output of Tencent HY (including distillation,
|
| 73 |
+
intermediate-data, or synthetic-data Outputs for training). Outputs by
|
| 74 |
+
themselves are NOT Model Derivatives.
|
| 75 |
+
|
| 76 |
+
**(h) "Output"** — content output of Tencent HY or a Model Derivative.
|
| 77 |
+
|
| 78 |
+
**(i) "Tencent," "We" or "Us"** — Tencent corporate family.
|
| 79 |
+
|
| 80 |
+
**(j) "Tencent HY"** — LLMs, generation models, multimodal LLMs and
|
| 81 |
+
software/algorithms, including **Hy-MT2-1.8B / 7B / 30B-A3B** (+ FP8 /
|
| 82 |
+
GGUF / 2bit-GGUF / 1.25bit-GGUF variants).
|
| 83 |
+
|
| 84 |
+
**(k) "Tencent HY Works"** — Materials + Model Derivatives + derivatives.
|
| 85 |
+
|
| 86 |
+
**(l) "Territory"** — **worldwide territory, excluding the European Union**.
|
| 87 |
+
|
| 88 |
+
**(m) "Third Party"** — entities not under common control with Us or You.
|
| 89 |
+
|
| 90 |
+
**(n) "including"** — including but not limited to.
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## 2. Grant of Rights
|
| 95 |
+
|
| 96 |
+
For the **Territory only**, non-exclusive, non-transferable, royalty-free
|
| 97 |
+
limited license to use, reproduce, distribute, create derivative works
|
| 98 |
+
(including Model Derivatives), and make modifications.
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
|
| 102 |
+
## 3. Distribution
|
| 103 |
+
|
| 104 |
+
Distribute Tencent HY Works to Third Parties **exclusively in the
|
| 105 |
+
Territory**, provided:
|
| 106 |
+
|
| 107 |
+
**(a)** Provide all Third Party recipients a copy of this Agreement;
|
| 108 |
+
|
| 109 |
+
**(b)** Modified files must carry prominent change notices;
|
| 110 |
+
|
| 111 |
+
**(c)** Encouraged: technology blogpost + **"Powered by Tencent HY"** label;
|
| 112 |
+
|
| 113 |
+
**(d)** Non-Hosted-Service distributions must include "Notice" text:
|
| 114 |
+
*"Tencent HY is licensed under the Tencent HY Community License
|
| 115 |
+
Agreement, Copyright © 2026 Tencent. All Rights Reserved. The trademark
|
| 116 |
+
rights of 'Tencent HY' are owned by Tencent or its affiliate."*
|
| 117 |
+
|
| 118 |
+
**(e)** **Provider disclosure** — clearly state actual provider's full
|
| 119 |
+
legal name + expressly state Tencent is NOT affiliated / sponsoring.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
## 4. Additional Commercial Terms
|
| 124 |
+
|
| 125 |
+
If MAU > **100 million** on release-date snapshot (2026-05-21), request
|
| 126 |
+
separate Tencent license. Tencent's sole discretion.
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
|
| 130 |
+
## 5. Rules of Use
|
| 131 |
+
|
| 132 |
+
**(a)** Comply with laws and the Acceptable Use Policy.
|
| 133 |
+
|
| 134 |
+
**(b)** **You must not use Tencent HY Works or any Output to improve
|
| 135 |
+
any other AI model** (only Tencent HY / its Model Derivatives).
|
| 136 |
+
|
| 137 |
+
**(c)** **You must not use Tencent HY Works outside the Territory**
|
| 138 |
+
(i.e., not in the EU).
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## 6-9. Standard provisions
|
| 143 |
+
|
| 144 |
+
IP / trademark / patent termination / Output ownership; **"AS IS"**, no
|
| 145 |
+
warranties; termination on breach; **Hong Kong SAR** law + exclusive
|
| 146 |
+
jurisdiction.
|
| 147 |
+
|
| 148 |
+
---
|
| 149 |
+
|
| 150 |
+
## Exhibit A — Acceptable Use Policy
|
| 151 |
+
|
| 152 |
+
**Last modified:** December 30, 2025
|
| 153 |
+
|
| 154 |
+
You agree NOT to use Tencent HY or Model Derivatives:
|
| 155 |
+
1. Outside the Territory (i.e., in the EU);
|
| 156 |
+
2. In violation of applicable laws;
|
| 157 |
+
3. To harm Yourself or others;
|
| 158 |
+
4. To repurpose / distribute outputs to harm others;
|
| 159 |
+
5. To override / circumvent safety guardrails;
|
| 160 |
+
6. To exploit / harm minors;
|
| 161 |
+
7. To generate verifiably false info to harm others / influence elections;
|
| 162 |
+
8. To facilitate false online engagement (fake reviews, bot traffic);
|
| 163 |
+
9. To defame / harass others;
|
| 164 |
+
10. To generate / disseminate malware (incl. ransomware);
|
| 165 |
+
11. To generate / disseminate PII to harm others;
|
| 166 |
+
12. To publish machine-generated content without conspicuous disclosure;
|
| 167 |
+
13. To impersonate another individual without consent;
|
| 168 |
+
14. To make high-stakes automated decisions in sensitive domains;
|
| 169 |
+
15. In a manner violating social ethics / moral standards;
|
| 170 |
+
16. To perform / facilitate violent extremism or terrorism;
|
| 171 |
+
17. To discriminate based on protected characteristics;
|
| 172 |
+
18. To exploit vulnerabilities of specific groups;
|
| 173 |
+
19. **For military purposes;**
|
| 174 |
+
20. To engage in unauthorized professional practice.
|
| 175 |
+
|
| 176 |
+
**END OF TERMS AND CONDITIONS**
|
| 177 |
+
|
| 178 |
+
---
|
| 179 |
+
|
| 180 |
+
## Copyright Notice
|
| 181 |
+
|
| 182 |
+
```
|
| 183 |
+
Copyright © 2026 Tencent. All Rights Reserved.
|
| 184 |
+
— Tencent Hy-MT2-7.5B BF16 base model. Hunyuan Translation
|
| 185 |
+
Model 2.0 dense 7B variant (HunYuanDenseV1ForCausalLM,
|
| 186 |
+
hidden 4096, 32 layers, GQA 32/8, 262K context, vocab
|
| 187 |
+
128 167), released 2026-05-21 as part of the Hy-MT2
|
| 188 |
+
family. "Fast-thinking" multilingual translation —
|
| 189 |
+
surpasses DeepSeek-V4-Pro and Kimi K2.6 in fast-thinking
|
| 190 |
+
mode. WMT26 video subtitle translation partner.
|
| 191 |
+
Distributed under the Tencent HY Community License
|
| 192 |
+
Agreement (release date: 2026-05-21).
|
| 193 |
+
|
| 194 |
+
Copyright © 2026 AMAImedia
|
| 195 |
+
— NF4 (bitsandbytes 4-bit, double_quant, bf16 compute)
|
| 196 |
+
quantization step on top of the local BF16 mirror
|
| 197 |
+
`NOESIS-3.5B-A0.5B-DUBBING-FILM/Hy-MT2-7.5B-BF16`
|
| 198 |
+
(which is itself a verbatim mirror of tencent/Hy-MT2-7.5B).
|
| 199 |
+
Used as **PRIMARY DUB-LM translation backend** inside the
|
| 200 |
+
NOESIS dubbing pipeline (Tier-1 / Tier-2 language coverage,
|
| 201 |
+
live voice translate scenarios) per the new tier rule
|
| 202 |
+
R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B.
|
| 203 |
+
NF4 quantization is a Model Derivative per Section 1(g)
|
| 204 |
+
and is explicitly permitted under Section 2 of the
|
| 205 |
+
Tencent HY Community License Agreement.
|
| 206 |
+
NF4 quant date: 2026-05-22 03:20:52.
|
| 207 |
+
```
|
| 208 |
+
|
| 209 |
+
Licensed under the Tencent HY Community License Agreement above. You
|
| 210 |
+
may not use this bundle except in compliance with that License, in
|
| 211 |
+
particular:
|
| 212 |
+
- The Territory exclusion (**EU only** for Hy-MT2 — UK + South Korea
|
| 213 |
+
now permitted, unlike HY-MT1.5);
|
| 214 |
+
- The 100M MAU commercial gate (Section 4);
|
| 215 |
+
- The Section 5(b) prohibition on using Outputs to train other AI models;
|
| 216 |
+
- The Section 3(d) "Powered by Tencent HY" notice obligation;
|
| 217 |
+
- The Section 3(e) provider-disclosure obligation.
|
| 218 |
+
|
| 219 |
+
---
|
| 220 |
+
|
| 221 |
+
## NOTICE — Hy-MT2-7.5B-NOESIS-NF4
|
| 222 |
+
|
| 223 |
+
> ⚠️ **License regime:** **Tencent HY Community License Agreement**
|
| 224 |
+
> (NOT Apache 2.0, NOT MIT). This bundle CANNOT be combined into
|
| 225 |
+
> Apache-2.0-only NF4 distributions without preserving the Tencent HY
|
| 226 |
+
> License terms across the entire downstream chain. Three critical gates:
|
| 227 |
+
> 1. **Territory** (EU excluded; UK + South Korea NOW INCLUDED)
|
| 228 |
+
> 2. **100M MAU** (Section 4)
|
| 229 |
+
> 3. **No-KD** (Section 5(b))
|
| 230 |
+
|
| 231 |
+
✅ This bundle is licensed under the **Tencent HY Community License
|
| 232 |
+
Agreement** (release date: 2026-05-21, Hong Kong SAR governing law).
|
| 233 |
+
|
| 234 |
+
✅ AMAImedia/NOESIS is currently below the 100M MAU threshold (no
|
| 235 |
+
investor at the time of NF4 quantization — see CLAUDE.md SCOPE LOCK
|
| 236 |
+
2026-05-15).
|
| 237 |
+
|
| 238 |
+
✅ **PRIMARY DUB-LM translation backend** in the NOESIS production
|
| 239 |
+
stack per **`R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B`** (sealed 2026-05-22):
|
| 240 |
+
this 7B NF4 bundle is the canonical translation engine; the
|
| 241 |
+
`Hy-MT2-1.8B-NOESIS-NF4` sibling (1.29 GB, VRAM peak 2.59 GB) is the
|
| 242 |
+
**FALLBACK** for low-VRAM clients (≤ 4 GB GPU, mobile/edge, WebGPU
|
| 243 |
+
browser deployment).
|
| 244 |
+
|
| 245 |
+
✅ **OWN NF4, NOT GGUF** per **`R-MT-OWN-NF4-NOT-GGUF`**: NOESIS
|
| 246 |
+
quantizes the BF16 mirror to NF4 in-house rather than relying on
|
| 247 |
+
upstream `tencent/Hy-MT2-7.5B-GGUF`, which depends on the **STQ kernel
|
| 248 |
+
released only in llama.cpp PR #22836** (not yet merged to stable
|
| 249 |
+
llama.cpp). NF4 is production-stable on transformers 5.8.1 +
|
| 250 |
+
bitsandbytes 0.49.2 per CLAUDE.md ENV_LOCK.
|
| 251 |
+
|
| 252 |
+
⚠️ **Section 5(b) NO-KD prohibition:** Outputs of this model **MAY NOT
|
| 253 |
+
be used** as training data, reward signal, distillation target, or
|
| 254 |
+
synthetic data source for **any other AI model** (only for Tencent HY
|
| 255 |
+
itself or Model Derivatives of Tencent HY). This is the critical
|
| 256 |
+
incompatibility with the NOESIS knowledge-distillation pipeline:
|
| 257 |
+
**Hy-MT2 outputs cannot enter the ensemble label dataset, cannot be
|
| 258 |
+
mixed into KD soft-label pools, and cannot be used as DPO/RLAIF reward
|
| 259 |
+
signal for any non-Hunyuan student model**. Inference outputs delivered
|
| 260 |
+
directly to the end user (translated text in the dubbing pipeline
|
| 261 |
+
output) are fine — that is not "training" or "improving" another AI
|
| 262 |
+
model under Section 5(b).
|
| 263 |
+
|
| 264 |
+
⚠️ **Section 5(c) territorial restriction:** This model **MAY NOT** be
|
| 265 |
+
served to end users physically located in the **European Union**.
|
| 266 |
+
NOESIS production routing must geo-fence Hunyuan-MT requests originating
|
| 267 |
+
from EU and fall back to a different translation backend
|
| 268 |
+
(NLLB-200 / Qwen3-MT / Madlad-400) for that region. **UK and South
|
| 269 |
+
Korea are now PERMITTED** in Hy-MT2 (relaxed vs HY-MT1.5).
|
| 270 |
+
|
| 271 |
+
⚠️ **Section 3(d) attribution obligation:** Display the verbatim Section
|
| 272 |
+
3(d) notice (Copyright © **2026** Tencent — NOT 2025 like HY-MT1.5) in
|
| 273 |
+
the application's license / about / acknowledgments surface.
|
| 274 |
+
|
| 275 |
+
### Source chain
|
| 276 |
+
|
| 277 |
+
```
|
| 278 |
+
tencent/Hy-MT2-7.5B
|
| 279 |
+
HunYuanDenseV1ForCausalLM, 7B params, 32 layers,
|
| 280 |
+
hidden 4096, GQA 32/8, 262K context, vocab 128 167
|
| 281 |
+
"Fast-thinking" multilingual translation — surpasses
|
| 282 |
+
DeepSeek-V4-Pro / Kimi K2.6 in fast-thinking mode
|
| 283 |
+
© Tencent 2026
|
| 284 |
+
Tencent HY Community License Agreement (2026-05-21)
|
| 285 |
+
https://huggingface.co/tencent/Hy-MT2-7.5B
|
| 286 |
+
│
|
| 287 |
+
│ Local mirror, no value transformation
|
| 288 |
+
▼
|
| 289 |
+
NOESIS-3.5B-A0.5B-DUBBING-FILM/Hy-MT2-7.5B-BF16 (sibling, 4 shards, ~16.05 GB)
|
| 290 |
+
NOESIS source-of-truth mirror (R-BF16-SOURCE-FOR-NF4-STUDENT)
|
| 291 |
+
© AMAImedia 2026, inherits Tencent HY Community License
|
| 292 |
+
│
|
| 293 |
+
│ bitsandbytes NF4 + double-quant + bf16 compute
|
| 294 |
+
│ (single-pass load → quantize → save, no calibration needed)
|
| 295 |
+
│ R-MT-OWN-NF4-NOT-GGUF (we quant, not upstream GGUF)
|
| 296 |
+
│ trust_remote_code=True per NF4 manifest
|
| 297 |
+
▼
|
| 298 |
+
Hy-MT2-7.5B-NOESIS-NF4 (this folder, 1 shard, 4.65 GB)
|
| 299 |
+
PRIMARY DUB-LM translation backend (R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B)
|
| 300 |
+
VRAM peak load 7.27 GB → on RTX 3060 Laptop 6 GB requires sequential
|
| 301 |
+
swapping window (release ASR/TTS specialists during translation pass)
|
| 302 |
+
OR fall back to 1.8B NF4 sibling for fixed-VRAM clients
|
| 303 |
+
© AMAImedia 2026 (NOESIS DHCF-FNO project)
|
| 304 |
+
Inherits Tencent HY Community License Agreement
|
| 305 |
+
Quant date: 2026-05-22 03:20:52
|
| 306 |
+
```
|
| 307 |
+
|
| 308 |
+
### File inventory + quantization specifications
|
| 309 |
+
|
| 310 |
+
| File | Size | Format | Role |
|
| 311 |
+
|------|-----:|--------|------|
|
| 312 |
+
| `model.safetensors` | 4.65 GB | **NF4** (bitsandbytes) | Quantized weights (single shard) |
|
| 313 |
+
| `config.json` | 1.5 KB | JSON | HunYuanDenseV1 config + `quantization_config` block |
|
| 314 |
+
| `generation_config.json` | small | JSON | Sampling defaults (temp=0.7, top_p=0.6, top_k=20, rep_pen=1.05) |
|
| 315 |
+
| `chat_template.jinja` | small | Jinja2 | Hy-MT2 chat template (translation-optimized) |
|
| 316 |
+
| `tokenizer.json` | — | JSON | Fast tokenizer (vocab 128 167) |
|
| 317 |
+
| `tokenizer_config.json` | — | JSON | Tokenizer metadata |
|
| 318 |
+
| `main_result.png` | — | PNG | Upstream benchmark visualization |
|
| 319 |
+
| `LICENSE.txt` | 16 KB | text | Original Tencent HY License (verbatim, preserved per Section 3(a)) |
|
| 320 |
+
| `LICENSE.md` | (this file) | Markdown | Same License in Markdown + NOESIS NOTICE |
|
| 321 |
+
| `README.md` | — | Markdown | NOESIS-standard model card + Tencent upstream content |
|
| 322 |
+
| `NOESIS_NF4_MANIFEST.json` | small | JSON | NOESIS quant pipeline manifest |
|
| 323 |
+
|
| 324 |
+
### Quantization specifications (preserved verbatim from NF4 manifest)
|
| 325 |
+
|
| 326 |
+
```
|
| 327 |
+
Library : bitsandbytes (0.49.2 per CLAUDE.md
|
| 328 |
+
ENV_LOCK 2026-05-17)
|
| 329 |
+
Method : NF4 (Normalized Float 4-bit)
|
| 330 |
+
bnb_4bit_use_double_quant : True (additional ~5% saving)
|
| 331 |
+
bnb_4bit_compute_dtype : bfloat16
|
| 332 |
+
bnb_4bit_quant_storage : uint8
|
| 333 |
+
Device map : {"": 0} (R-NF4-DEVICE-MAP-EXPLICIT)
|
| 334 |
+
trust_remote_code_used : True (per NF4 manifest)
|
| 335 |
+
Output disk size : 4.65 GB (single safetensors, down from
|
| 336 |
+
~16.05 GB BF16, ~3.45× compression)
|
| 337 |
+
VRAM peak (load) : 7.27 GB per manifest
|
| 338 |
+
⚠️ EXCEEDS RTX 3060 6 GB on cold start —
|
| 339 |
+
requires sequential window swapping
|
| 340 |
+
(release ASR/TTS specialists during
|
| 341 |
+
translation pass), or fall back to 1.8B
|
| 342 |
+
NF4 sibling for fixed-VRAM clients
|
| 343 |
+
Architecture : HunYuanDenseV1ForCausalLM (Tencent native)
|
| 344 |
+
Hidden size : 4 096
|
| 345 |
+
Intermediate size : 14 336
|
| 346 |
+
num_hidden_layers : 32
|
| 347 |
+
num_attention_heads : 32
|
| 348 |
+
num_key_value_heads : 8 (GQA 4 : 1)
|
| 349 |
+
head_dim : 128
|
| 350 |
+
use_qk_norm : True
|
| 351 |
+
Norm : RMSNorm (eps 1e-5)
|
| 352 |
+
Tie word embeddings : True
|
| 353 |
+
Vocab size : 128 167 (Hy-MT2-7.5B-specific; differs
|
| 354 |
+
from 1.8B 120 818; see
|
| 355 |
+
R-HUNYUAN-VOCAB-128167-7B-NEW)
|
| 356 |
+
Max position embeddings : 262 144 (262K context, dynamic NTK)
|
| 357 |
+
RoPE : dynamic NTK (alpha 1000, factor 1.0)
|
| 358 |
+
transformers_version : 5.8.1 (matches ENV_LOCK 2026-05-17,
|
| 359 |
+
R-TRANSFORMERS-5-8-1)
|
| 360 |
+
Quant date : 2026-05-22 03:20:52
|
| 361 |
+
NOESIS role : PRIMARY DUB-LM translation backend
|
| 362 |
+
(R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B)
|
| 363 |
+
```
|
| 364 |
+
|
| 365 |
+
---
|
| 366 |
+
|
| 367 |
+
## Required attribution
|
| 368 |
+
|
| 369 |
+
**Tencent Hy-MT2 base model:**
|
| 370 |
+
> tencent/Hy-MT2-7.5B
|
| 371 |
+
> © Tencent 2026, licensed under Tencent HY Community License Agreement
|
| 372 |
+
> https://huggingface.co/tencent/Hy-MT2-7.5B
|
| 373 |
+
> https://github.com/Tencent-Hunyuan/Hy-MT2
|
| 374 |
+
|
| 375 |
+
**Mandatory Section 3(d) NOTICE:**
|
| 376 |
+
> *"Tencent HY is licensed under the Tencent HY Community License
|
| 377 |
+
> Agreement, Copyright © 2026 Tencent. All Rights Reserved. The
|
| 378 |
+
> trademark rights of 'Tencent HY' are owned by Tencent or its
|
| 379 |
+
> affiliate."*
|
| 380 |
+
|
| 381 |
+
**Encouraged Section 3(c) "Powered by Tencent HY" label** — render in
|
| 382 |
+
the product's translation-backend credits surface.
|
| 383 |
+
|
| 384 |
+
**Mandatory Section 3(e) provider disclosure:**
|
| 385 |
+
> The actual provider of this dubbing automation service is
|
| 386 |
+
> **AMAImedia.com** (NOESIS DHCF-FNO project, https://amaimedia.com).
|
| 387 |
+
> Tencent is **not** affiliated with, associated with, sponsoring,
|
| 388 |
+
> or endorsing the NOESIS Professional Multilingual Dubbing
|
| 389 |
+
> Automation Platform.
|
| 390 |
+
|
| 391 |
+
**NF4 quantization + NOESIS bundling (this folder):**
|
| 392 |
+
> Hy-MT2-7.5B-NOESIS-NF4
|
| 393 |
+
> bitsandbytes NF4 + double_quant + bfloat16 compute
|
| 394 |
+
> © AMAImedia 2026 (NOESIS DHCF-FNO project)
|
| 395 |
+
> Inherits Tencent HY Community License Agreement
|
| 396 |
+
> Released as part of NOESIS Professional Multilingual Dubbing Platform
|
| 397 |
+
|
| 398 |
+
---
|
| 399 |
+
|
| 400 |
+
## NOESIS sealed-rule constraints
|
| 401 |
+
|
| 402 |
+
| Rule | Summary |
|
| 403 |
+
|------|---------|
|
| 404 |
+
| `R-TENCENT-HY-COMMUNITY-CC` | Tencent HY Community License regime, NOT Apache 2.0 |
|
| 405 |
+
| `R-TERRITORY-EXCLUDE-EU` | **CRITICAL** — Section 5(c): EU **excluded** (UK + KR NOW INCLUDED in Hy-MT2 — relaxed vs HY-MT1.5) |
|
| 406 |
+
| `R-100M-MAU-GATE` | Section 4 — separate Tencent license above 100M MAU |
|
| 407 |
+
| `R-TENCENT-HY-NO-KD-TRAIN` | **CRITICAL** — Section 5(b): Outputs cannot train other AI models |
|
| 408 |
+
| `R-POWERED-BY-TENCENT-HY-LABEL` | Section 3(c) — encouraged "Powered by Tencent HY" badge |
|
| 409 |
+
| `R-DISCLOSE-AMAIMEDIA-PROVIDER` | Section 3(e) — non-affiliation disclosure |
|
| 410 |
+
| `R-TENCENT-HY-NOTICE-3D` | Section 3(d) verbatim notice (Copyright © **2026** Tencent) |
|
| 411 |
+
| **`R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B`** | **This bundle = PRIMARY DUB-LM backend**; 1.8B NF4 sibling = FALLBACK |
|
| 412 |
+
| **`R-MT-OWN-NF4-NOT-GGUF`** | NOESIS quantizes BF16 → NF4 in-house, NOT upstream Hy-MT2-7.5B-GGUF (depends on llama.cpp PR #22836 STQ kernel) |
|
| 413 |
+
| **`R-HF-NAMING-QUANT-ONLY-PRESERVE-UPSTREAM`** | Folder name preserves upstream model name + quant suffix only |
|
| 414 |
+
| `R-NF4-DEVICE-MAP-EXPLICIT` | Load with `device_map={"": 0}`; never `device_map="auto"` with NF4 (CLAUDE.md GOLDEN RULE 2) |
|
| 415 |
+
| `R-HUNYUAN-VOCAB-128167-7B-NEW` | Vocab 128 167 is **incompatible** with Qwen3 family (151 936) AND with sibling Hy-MT2-1.8B (120 818) for logit-level KD mixing |
|
| 416 |
+
| `R-HY-MT-DUB-LM-TRANSLATION-ROLE` | DUB-LM translation backend only, not chat/agent/reasoning |
|
| 417 |
+
| `R-HUNYUAN-DENSE-V1-NATIVE-LOADER` | `transformers >= 5.6.0` (Hy-MT2 baseline); NOESIS env uses 5.8.1; `trust_remote_code=True` per manifest |
|
| 418 |
+
| `R-HUNYUAN-262K-CONTEXT-DYNAMIC-NTK` | 262K context via dynamic NTK (alpha 1000) |
|
| 419 |
+
| `R-HUNYUAN-LIVE-VOICE-TRANSLATE` | Qualified for live voice translate scenarios |
|
| 420 |
+
| `R-VENDORED-INTERNAL` | NOESIS bundle. `LICENSE.txt` preserved verbatim per Section 3(a) |
|
| 421 |
+
|
| 422 |
+
---
|
| 423 |
+
|
| 424 |
+
## NOESIS Professional Multilingual Dubbing Automation Platform
|
| 425 |
+
|
| 426 |
+
**Framework:** DHCF-FNO (Deterministic Hybrid Control Framework for Frozen Neural Operators)
|
| 427 |
+
|
| 428 |
+
| Field | Value |
|
| 429 |
+
|-------|-------|
|
| 430 |
+
| Founder | Ilia Bolotnikov |
|
| 431 |
+
| Organization | AMAImedia.com — https://www.amaimedia.com |
|
| 432 |
+
| X (Twitter) | https://x.com/AMAImediacom |
|
| 433 |
+
| LinkedIn | https://www.linkedin.com/in/ilia-bolotnikov |
|
| 434 |
+
| Telegram | https://t.me/AMAImediacom |
|
| 435 |
+
|
| 436 |
+
| Field | Value |
|
| 437 |
+
|-------|-------|
|
| 438 |
+
| NOESIS version at quant | v15.8 |
|
| 439 |
+
| Quantization date | 2026-05-22 03:20:52 |
|
| 440 |
+
| Parent BF16 source | `NOESIS-3.5B-A0.5B-DUBBING-FILM/Hy-MT2-7.5B-BF16` (4 shards, ~16.05 GB) |
|
| 441 |
+
| Vendored component | `Hy-MT2-7.5B-NOESIS-NF4` (Tencent HY Community License) |
|
| 442 |
+
| NOESIS role | **PRIMARY** DUB-LM translation backend (R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B) |
|
| 443 |
+
| Sibling FALLBACK | `Hy-MT2-1.8B-NOESIS-NF4` (1.29 GB, VRAM peak 2.59 GB) for low-VRAM clients |
|
| 444 |
+
| Territory gate | `NOESIS_HUNYUAN_GEOFENCE_BLOCK=EU` (relaxed from EU+GB+KR in HY-MT1.5) |
|
| 445 |
+
| Commercial gate | `NOESIS_HUNYUAN_LICENSE_TIER=community` until 100M MAU |
|
| 446 |
+
| KD prohibition | Outputs NOT for training other AI models (Section 5(b)) |
|
NOESIS_MERGE_MANIFEST.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "hymt2_1.8b",
|
| 3 |
+
"base": "B:\\Downloads\\Portable\\NOESIS-VC-ONE\\models\\llm\\NOESIS-3.5B-A0.5B-DUBBING-FILM\\Hy-MT2-1.8B-BF16",
|
| 4 |
+
"merged_adapters": [
|
| 5 |
+
"nt312_sft_hymt2_1.8b"
|
| 6 |
+
],
|
| 7 |
+
"format": "BF16 merged (dense, for GGUF convert)",
|
| 8 |
+
"next": "convert_hf_to_gguf.py (b8808) -> llama-quantize Q5_K_M/Q8_0 (b9523)",
|
| 9 |
+
"created": "2026-06-06 12:18:19"
|
| 10 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
language:
|
| 4 |
+
- zh
|
| 5 |
+
- en
|
| 6 |
+
- fr
|
| 7 |
+
- pt
|
| 8 |
+
- es
|
| 9 |
+
- ja
|
| 10 |
+
- tr
|
| 11 |
+
- ru
|
| 12 |
+
- ar
|
| 13 |
+
- ko
|
| 14 |
+
- th
|
| 15 |
+
- it
|
| 16 |
+
- de
|
| 17 |
+
- vi
|
| 18 |
+
- ms
|
| 19 |
+
- id
|
| 20 |
+
- tl
|
| 21 |
+
- hi
|
| 22 |
+
- pl
|
| 23 |
+
- cs
|
| 24 |
+
- nl
|
| 25 |
+
- km
|
| 26 |
+
- my
|
| 27 |
+
- fa
|
| 28 |
+
- gu
|
| 29 |
+
- ur
|
| 30 |
+
- te
|
| 31 |
+
- mr
|
| 32 |
+
- he
|
| 33 |
+
- bn
|
| 34 |
+
- ta
|
| 35 |
+
- uk
|
| 36 |
+
- bo
|
| 37 |
+
- kk
|
| 38 |
+
- mn
|
| 39 |
+
- ug
|
| 40 |
+
license: other
|
| 41 |
+
license_name: tencent-hy-community
|
| 42 |
+
license_link: LICENSE.md
|
| 43 |
+
base_model:
|
| 44 |
+
- tencent/Hy-MT2-1.8B
|
| 45 |
+
pipeline_tag: translation
|
| 46 |
+
tags:
|
| 47 |
+
- translation
|
| 48 |
+
- noesis
|
| 49 |
+
- noesis-dub-lm
|
| 50 |
+
- dhcf-fno
|
| 51 |
+
- amaimedia
|
| 52 |
+
- sft
|
| 53 |
+
- qlora
|
| 54 |
+
- bf16
|
| 55 |
+
- hunyuan
|
| 56 |
+
- hy-mt2
|
| 57 |
+
- tencent
|
| 58 |
+
- translation
|
| 59 |
+
- dub-lm
|
| 60 |
+
- live-voice-translate
|
| 61 |
+
inference: false
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
# NOESIS-Hy-MT2-1.8B-BF16
|
| 65 |
+
|
| 66 |
+
> **NOESIS Professional Multilingual Dubbing Automation Platform**
|
| 67 |
+
> framework: DHCF-FNO — *Deterministic Hybrid Control Framework for Frozen Neural Operators*
|
| 68 |
+
>
|
| 69 |
+
> - **Founder:** Ilia Bolotnikov
|
| 70 |
+
> - **Organization:** [AMAImedia.com](https://www.amaimedia.com)
|
| 71 |
+
> - **X (Twitter):** [@AMAImediacom](https://x.com/AMAImediacom)
|
| 72 |
+
> - **Telegram:** [@AMAImediacom](https://t.me/AMAImediacom)
|
| 73 |
+
> - **NOESIS version:** v15.10
|
| 74 |
+
> - **Trained:** 2026-06-05/06
|
| 75 |
+
> - **Last updated:** 2026-06-06
|
| 76 |
+
|
| 77 |
+
> ⚠️ **License regime — Tencent HY Community License Agreement.** Three license gates apply: (1) Territory — EU excluded; (2) 100M MAU cap (separate Tencent license required above); (3) No-KD: outputs cannot be used to train other AI models. Full text in `LICENSE.md`.
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Role in NOESIS pipeline
|
| 82 |
+
|
| 83 |
+
**Primary translation backend** for the NOESIS dubbing pipeline (Stage 3 source→target compress translate). 33 mainland + 5 ethnic + Cantonese languages.
|
| 84 |
+
|
| 85 |
+
This bundle = **BF16 merged checkpoint** of `tencent/Hy-MT2-1.8B` + NOESIS SFT-LoRA
|
| 86 |
+
adapter (`nt312_sft_hymt2_1.8b`) trained on the NOESIS dubbing corpus.
|
| 87 |
+
Format: bf16 dense (master). Disk ≈ 3.4 GB, VRAM peak load ≈ 3.6 GB on RTX 3060.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## NOESIS A/B test results — 2026-06-06
|
| 92 |
+
|
| 93 |
+
Evaluation harness: `scripts/nt318_eval_ab.py` (chat-format prompt + `<|im_end|>` stop +
|
| 94 |
+
held-out 30-sample slice of `dub_subscene_MERGED.jsonl`, filtered to common target langs).
|
| 95 |
+
|
| 96 |
+
| Metric | Upstream NF4 (baseline) | NOESIS SFT (this) | Δ |
|
| 97 |
+
|---|---|---|---|
|
| 98 |
+
| garbage% (n=30) | 20.0% | **0.0%** | ✅ -20.0 pp |
|
| 99 |
+
| iso_fit (dubbing budget) | 0.390 | **0.521** | ✅ +0.131 |
|
| 100 |
+
| overlap vs gold (Jaccard) | 0.048 | **0.194** | ✅ +0.146 |
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
**Verdict:** ✅ no regression + measurable quality improvement on every metric.
|
| 104 |
+
|
| 105 |
+
### Real example outputs
|
| 106 |
+
|
| 107 |
+
| Source | Upstream NF4 | NOESIS SFT |
|
| 108 |
+
|---|---|---|
|
| 109 |
+
| `Го развивме филмот...` | `THE SOURCE IS NOT SURE WHAT TO DO.` | **`We'll develop the film.`** |
|
| 110 |
+
| `Можам ли да ги видам?` | `Can you show me how to use it?` | **`Can I see them?`** |
|
| 111 |
+
|
| 112 |
+
Old/new sample dumps: `logs_heal/ab2/{old,new}_hymt2_1.8b.json`.
|
| 113 |
+
|
| 114 |
+
---
|
| 115 |
+
|
| 116 |
+
## Bundle inventory
|
| 117 |
+
|
| 118 |
+
| File | Description |
|
| 119 |
+
|------|-------------|
|
| 120 |
+
| `model.safetensors` | weights (BF16, single shard) |
|
| 121 |
+
| `config.json` | model architecture configuration |
|
| 122 |
+
| `generation_config.json` | default decoding params |
|
| 123 |
+
| `tokenizer.json` / `tokenizer_config.json` | tokenizer |
|
| 124 |
+
| `chat_template.jinja` | chat template (im_start / im_end markers) |
|
| 125 |
+
| `NOESIS_MERGE_MANIFEST.json` | NOESIS provenance (base, adapter, created-at) |
|
| 126 |
+
| `README.md` | this file |
|
| 127 |
+
| `LICENSE.md` | NOESIS provenance + upstream license terms |
|
| 128 |
+
|
| 129 |
+
---
|
| 130 |
+
|
| 131 |
+
## Training details
|
| 132 |
+
|
| 133 |
+
| Field | Value |
|
| 134 |
+
|---|---|
|
| 135 |
+
| Method | SFT (Supervised Fine-Tuning) with QLoRA |
|
| 136 |
+
| Trainer | `scripts/nt312_train_sft_lora.py` |
|
| 137 |
+
| LoRA rank / alpha | 16 / 32 |
|
| 138 |
+
| LoRA targets | down_proj, q_proj, v_proj (lean) |
|
| 139 |
+
| Max steps | 500, save every 50, --resume capable |
|
| 140 |
+
| LR scheduler | warmup_stable_decay (WSD, MiniCPM-style) |
|
| 141 |
+
| Optimizer | AdamW 8-bit (paged) |
|
| 142 |
+
| Adapter | `LORA/nt312_sft_hymt2_1.8b/adapter` |
|
| 143 |
+
| Dataset | `LORA/Hy-MT2-SFT-100k.jsonl` |
|
| 144 |
+
| Sealed rule | `R-SEALED-LORA-RECIPE-V3-NF4` |
|
| 145 |
+
|
| 146 |
+
---
|
| 147 |
+
|
| 148 |
+
## Quick Start
|
| 149 |
+
|
| 150 |
+
### Load
|
| 151 |
+
```python
|
| 152 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 153 |
+
import torch
|
| 154 |
+
|
| 155 |
+
path = "NOESIS-Hy-MT2-1.8B-BF16"
|
| 156 |
+
tok = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|
| 157 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 158 |
+
path, torch_dtype=torch.bfloat16, device_map={"": 0},
|
| 159 |
+
trust_remote_code=True,
|
| 160 |
+
)
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
### Translate (chat format — MANDATORY for correct stop)
|
| 164 |
+
```python
|
| 165 |
+
src_lang, tgt_lang, src = "en", "ru", "Get out of the city, now!"
|
| 166 |
+
prompt = (
|
| 167 |
+
f"<|im_start|>user\n"
|
| 168 |
+
f"Переведи реплику дубляжа {src_lang}->{tgt_lang}, только перевод.\n"
|
| 169 |
+
f"SOURCE ({src_lang}): {src}<|im_end|>\n"
|
| 170 |
+
f"<|im_start|>assistant\n"
|
| 171 |
+
)
|
| 172 |
+
stop_ids = [tok.eos_token_id, tok.convert_tokens_to_ids("<|im_end|>")]
|
| 173 |
+
ids = tok(prompt, return_tensors="pt").input_ids.cuda()
|
| 174 |
+
g = model.generate(
|
| 175 |
+
ids, max_new_tokens=64, do_sample=False,
|
| 176 |
+
repetition_penalty=1.2,
|
| 177 |
+
eos_token_id=stop_ids, pad_token_id=tok.eos_token_id,
|
| 178 |
+
)
|
| 179 |
+
print(tok.decode(g[0][ids.shape[1]:], skip_special_tokens=True))
|
| 180 |
+
# → "Уберись из города! Немедленно."
|
| 181 |
+
```
|
| 182 |
+
|
| 183 |
+
Convert via `convert_hf_to_gguf.py` (b8808 patched) → llama-quantize q5_k_m/q8_0 (b9523).
|
| 184 |
+
|
| 185 |
+
---
|
| 186 |
+
|
| 187 |
+
## NOESIS sealed rules
|
| 188 |
+
|
| 189 |
+
| Rule | Summary |
|
| 190 |
+
|------|---------|
|
| 191 |
+
| `R-MT-PRIMARY-7B-NF4-FALLBACK-1.8B` | Hy-MT2 7.5B = primary translator; 1.8B = low-VRAM fallback |
|
| 192 |
+
| `R-MT-OWN-NF4-NOT-GGUF` | Translator NF4 is OWN bnb quant, not GGUF (GGUF is a separate dense artifact) |
|
| 193 |
+
| `R-SEALED-LORA-RECIPE-V3-NF4` | Canonical SFT-LoRA recipe (rank 16, lean targets, WSD) |
|
| 194 |
+
| `R-HF-NAMING-QUANT-ONLY-PRESERVE-UPSTREAM` | Naming convention for trained derivatives |
|
| 195 |
+
| `R-NEVER-DELETE-WITHOUT-EXPLICIT-CONSENT` | Bundle must not be deleted without explicit operator instruction |
|
| 196 |
+
|
| 197 |
+
---
|
| 198 |
+
|
| 199 |
+
## Upstream
|
| 200 |
+
|
| 201 |
+
- **Base model:** [`tencent/Hy-MT2-1.8B`](https://huggingface.co/tencent/Hy-MT2-1.8B)
|
| 202 |
+
- **License:** Tencent HY Community License Agreement — see `LICENSE.md` for the full text and NOESIS compliance notes.
|
| 203 |
+
- **Training corpus:** internal NOESIS dubbing dataset (translation pairs with phoneme budgets + isochrony targets).
|
| 204 |
+
|
| 205 |
+
NOESIS provenance metadata, bundle inventory, sealed-rule annotations, and DHCF-FNO
|
| 206 |
+
integration notes © AMAImedia 2026 (NOESIS DHCF-FNO project).
|
| 207 |
+
|
| 208 |
+
## MT benchmark — FLORES-200 devtest (2026-06-17)
|
| 209 |
+
|
| 210 |
+
Real eval (not smoke): n=100 × 4 directions (eng↔rus, eng↔cmn), GPU via resident
|
| 211 |
+
`llama-server -ngl 99`. Primary metric **COMET** (wmt22-comet-da, neural — how "best
|
| 212 |
+
translator" is judged), plus chrF++ / BLEU / length-ratio. Each model prompted in its own
|
| 213 |
+
native format (MT2 = dubbing ChatML "SOURCE (lang): … Только перевод"; 9B = ChatML + no-think).
|
| 214 |
+
Data + COMET checkpoint: `D:/models/by_expert/07_MT_TRANSLATION`.
|
| 215 |
+
|
| 216 |
+
| Model | Size | COMET avg | chrF++ | BLEU | gen tok/s |
|
| 217 |
+
|-------|------|-----------|--------|------|-----------|
|
| 218 |
+
| Qwopus3.5-9B-Translate Q4 | 5.24 GB | **0.8870** | 50.7 | 22.5 | 49 |
|
| 219 |
+
| NOESIS-Hy-MT2-7.5B Q5 | 5.0 GB | 0.8709 | 46.2 | 21.4 | 52 |
|
| 220 |
+
| NOESIS-Hy-MT2-1.8B Q8 | 1.78 GB | 0.8481 | 43.9 | 19.1 | 121 |
|
| 221 |
+
|
| 222 |
+
Per-direction COMET — 9B-Translate wins all 4 (eng-rus .902 / eng-cmn .897 / rus-eng .872 /
|
| 223 |
+
cmn-eng .877); MT2-7.5B 2nd, MT2-1.8B 3rd.
|
| 224 |
+
|
| 225 |
+
**Notes:**
|
| 226 |
+
- MT2 is a **dubbing** translator (isochrony): its outputs are shorter (len_ratio ~0.87-0.89
|
| 227 |
+
vs 9B ~1.0) because it compresses to fit speech slots → lower chrF on *literal* FLORES news.
|
| 228 |
+
FLORES does NOT measure MT2's slot-fit strength, so it under-rates MT2 for its actual job.
|
| 229 |
+
- 1.8B→7.5B degradation: COMET +0.023, chrF +2.3, BLEU +2.3 — modest; 1.8B is 2.4× faster
|
| 230 |
+
and 2.8× smaller (good lightweight tradeoff).
|
| 231 |
+
- BLEU for eng-cmn is low for all (Chinese needs char-tokenization); use chrF++/COMET there.
|
chat_template.jinja
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}<|hy_User|>{{ message['content'] }}{% elif message['role'] == 'assistant' %}<|hy_Assistant|>{{ message['content'] }}<|hy_place▁holder▁no▁2|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|hy_Assistant|>{% else %}<|hy_place▁holder▁no▁8|>{% endif %}
|
config.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_classification_head": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"HunYuanDenseV1ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"attention_head_dim": 128,
|
| 9 |
+
"bos_token_id": 120000,
|
| 10 |
+
"cla_share_factor": 2,
|
| 11 |
+
"class_num": 0,
|
| 12 |
+
"dense_list": [
|
| 13 |
+
2048,
|
| 14 |
+
0
|
| 15 |
+
],
|
| 16 |
+
"dtype": "bfloat16",
|
| 17 |
+
"eod_token_id": 3,
|
| 18 |
+
"eos_token_id": 120020,
|
| 19 |
+
"head_dim": 128,
|
| 20 |
+
"hidden_act": "silu",
|
| 21 |
+
"hidden_size": 2048,
|
| 22 |
+
"im_end_id": 5,
|
| 23 |
+
"im_newline_id": 11,
|
| 24 |
+
"im_start_id": 4,
|
| 25 |
+
"initializer_range": 0.02,
|
| 26 |
+
"intermediate_size": 6144,
|
| 27 |
+
"mask_init_id": 12,
|
| 28 |
+
"max_position_embeddings": 262144,
|
| 29 |
+
"mlp_bias": false,
|
| 30 |
+
"model_type": "hunyuan_v1_dense",
|
| 31 |
+
"norm_type": "rms",
|
| 32 |
+
"num_attention_heads": 16,
|
| 33 |
+
"num_hidden_layers": 32,
|
| 34 |
+
"num_key_value_heads": 4,
|
| 35 |
+
"org_vocab_size": 120818,
|
| 36 |
+
"pad_id": 120002,
|
| 37 |
+
"pad_token_id": 120002,
|
| 38 |
+
"pool_type": "last",
|
| 39 |
+
"pretraining_tp": 1,
|
| 40 |
+
"rms_norm_eps": 1e-05,
|
| 41 |
+
"rope_parameters": {
|
| 42 |
+
"alpha": 1000.0,
|
| 43 |
+
"beta_fast": 32,
|
| 44 |
+
"beta_slow": 1,
|
| 45 |
+
"factor": 1.0,
|
| 46 |
+
"mscale": 1.0,
|
| 47 |
+
"mscale_all_dim": 1.0,
|
| 48 |
+
"rope_theta": 10000.0,
|
| 49 |
+
"rope_type": "dynamic",
|
| 50 |
+
"type": "dynamic"
|
| 51 |
+
},
|
| 52 |
+
"sep_token_id": 120007,
|
| 53 |
+
"text_end_id": 7,
|
| 54 |
+
"text_start_id": 6,
|
| 55 |
+
"tie_word_embeddings": true,
|
| 56 |
+
"transformers_version": "5.10.0.dev0",
|
| 57 |
+
"use_cache": true,
|
| 58 |
+
"use_cla": false,
|
| 59 |
+
"use_qk_norm": true,
|
| 60 |
+
"use_rotary_pos_emb": true,
|
| 61 |
+
"vocab_size": 120818
|
| 62 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 120000,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": 120020,
|
| 5 |
+
"pad_token_id": 120002,
|
| 6 |
+
"repetition_penalty": 1.05,
|
| 7 |
+
"temperature": 0.7,
|
| 8 |
+
"top_k": 20,
|
| 9 |
+
"top_p": 0.8,
|
| 10 |
+
"transformers_version": "5.10.0.dev0"
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17fd6d316148d7d80a54f3982555d7867642482cfe2835702e3988da2f2f8eca
|
| 3 |
+
size 3582202056
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|hy_begin▁of▁sentence|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|hy_place▁holder▁no▁2|>",
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"local_files_only": false,
|
| 8 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 9 |
+
"pad_token": "<|hy_▁pad▁|>",
|
| 10 |
+
"tokenizer_class": "TokenizersBackend"
|
| 11 |
+
}
|