diff --git a/strataqwen38iq3sv3/Chart.yaml b/strataqwen38iq3sv3/Chart.yaml index ec878f5fd..cba420e3e 100644 --- a/strataqwen38iq3sv3/Chart.yaml +++ b/strataqwen38iq3sv3/Chart.yaml @@ -3,4 +3,4 @@ appVersion: 0.2.13 description: Qwen3.8-Flash-Next GSQ-RCO IQ3_S with Strata and Model Console name: strataqwen38iq3sv3 type: application -version: 0.0.19 +version: 0.0.24 diff --git a/strataqwen38iq3sv3/OlaresManifest.yaml b/strataqwen38iq3sv3/OlaresManifest.yaml index 90c269e74..8a0400920 100644 --- a/strataqwen38iq3sv3/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/OlaresManifest.yaml @@ -7,7 +7,7 @@ metadata: description: "Qwen3.8-Flash-Next for text generation, reasoning, and tool calling, powered locally by Strata" appid: strataqwen38iq3sv3 title: Qwen3.8-Flash-Next IQ3_S - version: 0.0.19 + version: 0.0.24 categories: - models tags: @@ -30,6 +30,8 @@ entrances: authLevel: internal - name: strataui port: 8080 + # Keep the route available without blocking initialization on model loading. + skip: true host: strata title: Strata UI — Qwen3.8 IQ3_S icon: https://app.cdn.olares.com/appstore/strata/strata_qwen.png @@ -42,7 +44,12 @@ spec: onlyAdmin: true versionName: "0.2.13" upgradeDescription: | - - Strata 0.2.13 (engine 0.1.59): new per-card DFlash2 drafting defaults — on 48 GB+ Blackwell cards IQ3_S drafts with a wider window at higher confidence (measured +2.8% decode on an RTX PRO 5000 72 GB; all other cards keep their 0.2.12 values); the app fetches the tuned drafter by itself when Auto picks it; plain engine starts now match the app's settings on Linux CUDA; on Linux the expert store loads through the file cache again when free RAM, the file cache, or huge pages can cover a shortfall (#5327); and the app opens noticeably faster. The model, the 262K context and image input are unchanged. + - Keeps the required CPU at 1300m. The app CPU limit is 20 cores, and the engine CPU limit defaults to 19 cores so all containers stay within that limit. + - Raises the app memory limit to 78 GiB and the engine memory limit to 75 GiB. + - Selects DFlash2 after its pack is downloaded and verified. Existing caches stay in the persistent /dflash2 directory. If preparation fails, the engine keeps MTP and records the reason. + - Keeps Strata UI on port 8080 without blocking startup. Model Console can open before the model finishes downloading and loading; Strata UI becomes available afterward. + - Downloads models directly from Hugging Face with Xet, so a large file is no longer stopped by the internal HTTP mirror’s per-file transfer limit. + - Set expert workers with --pool-workers in ENGINE_ARGS. They are no longer capped to the container CPU budget. Saved engine arguments are kept; set --kv-streaming auto in Model Console to use automatic KV streaming. fullDescription: | Qwen3.8-Flash-Next is an experimental AI model from Alibaba's Qwen team for answering questions and generating text, with support for thinking and tool calling in compatible applications. This app runs ISTA-DASLab's GSQ-RCO IQ3_S quantized edition locally using Strata. @@ -94,12 +101,12 @@ spec: url: https://github.com/Niko1221/Strata/blob/main/LICENSE accelerator: - mode: nvidia - limitedCpu: '14' + limitedCpu: '20' requiredCpu: 1300m requiredDisk: 120Gi limitedDisk: 200Gi - requiredMemory: 65Gi - limitedMemory: 83Gi + requiredMemory: 57Gi + limitedMemory: 78Gi requiredGPUMemory: 23Gi limitedGPUMemory: 24Gi supportArch: @@ -162,20 +169,16 @@ envs: type: string editable: true applyOnChange: true - default: --context 262144 --parallel 1 --resident-budget-gib 48 --kv int8 --kv-streaming off --vram-reserve-mib 1024 - description: Strata setup.py options. Model/source/host/port/GPU/vision are managed by the chart. Saving engine_args + default: --context 262144 --parallel 1 --resident-budget-gib 48 --kv int8 --kv-streaming auto --vram-reserve-mib 1024 + description: Strata setup.py options. Model/source/host/port/GPU/vision are managed by the chart. Add --pool-workers here to set the CPU expert-worker count; without it, Strata chooses from the CPUs visible in the container, which can exceed STRATA_CPU_LIMIT. Saving engine_args in Model Console relaunches setup and the server; existing packs and MTP files are reused. + Existing installations retain saved arguments; set --kv-streaming auto to enable the new default. - envName: LOG_LEVEL required: true type: string editable: true applyOnChange: true default: info -- envName: HF_ENDPOINT - required: false - applyOnChange: true - valueFrom: - envName: OLARES_SYSTEM_HUGGINGFACE_SERVICE - envName: HF_TOKEN required: false applyOnChange: true @@ -192,19 +195,20 @@ envs: type: string editable: false applyOnChange: false - default: 64Gi + default: 56Gi - envName: STRATA_CPU_LIMIT required: true type: string - editable: false - applyOnChange: false - default: '12' + editable: true + applyOnChange: true + default: '19' + description: Engine container CPU limit in cores. Defaults to 19 so the total container CPU limit stays within the app ceiling (20). Saving restarts the engine. Expert workers are set with --pool-workers in ENGINE_ARGS. - envName: STRATA_MEMORY_LIMIT required: true type: string editable: false applyOnChange: false - default: 80Gi + default: 75Gi - envName: STRATA_REQUIRED_GPU_MEMORY required: true type: string diff --git a/strataqwen38iq3sv3/i18n/de-DE/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/de-DE/OlaresManifest.yaml index 4db77c309..848501540 100644 --- a/strataqwen38iq3sv3/i18n/de-DE/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/de-DE/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Qwen3.8-Flash-Next für Textgenerierung, Schlussfolgern und Werkzeugaufrufe, lokal mit Strata" spec: upgradeDescription: | - - Strata 0.2.13 (Engine 0.1.59): neue DFlash2-Standardwerte je Grafikkarte – auf Blackwell-Karten ab 48 GB entwirft IQ3_S mit breiterem Fenster und höherer Konfidenz (gemessen +2,8 % Dekodierung auf dem RTX PRO 5000 72 GB; alle anderen Karten behalten die Werte von 0.2.12); die App holt den abgestimmten Entwurfshelfer selbst, wenn Auto ihn wählt; direkte Engine-Starts entsprechen auf Linux CUDA nun den App-Einstellungen; auf Linux lädt der Expertenspeicher über den Datei-Cache, wenn freier RAM, Datei-Cache oder Riesenseiten einen Engpass abdecken können (#5327); und die App startet spürbar schneller. Modell, 262K-Kontext und Bildeingabe bleiben unverändert. + - Der benötigte CPU-Wert bleibt bei 1300m. Das CPU-Limit der App beträgt 20 Kerne, das CPU-Limit der Engine standardmäßig 19 Kerne, damit alle Container innerhalb dieses Limits bleiben. + - Das Speicherlimit der App steigt auf 78 GiB, das der Engine auf 75 GiB. + - DFlash2 wird nach Download und Prüfung des Pakets ausgewählt. Vorhandene Caches bleiben im persistenten Verzeichnis /dflash2. Schlägt die Vorbereitung fehl, bleibt MTP aktiv und der Grund wird protokolliert. + - Strata UI bleibt auf Port 8080 und blockiert den Start nicht mehr. Model Console lässt sich öffnen, bevor Download und Laden des Modells abgeschlossen sind; Strata UI ist danach verfügbar. + - Modelle werden mit Xet direkt von Hugging Face geladen, sodass große Dateien nicht mehr am Übertragungs-Limit des internen HTTP-Mirrors scheitern. + - Expert-Worker werden mit --pool-workers in ENGINE_ARGS gesetzt und nicht mehr auf das CPU-Budget des Containers begrenzt. Gespeicherte Engine-Argumente bleiben erhalten; für automatisches KV-Streaming in Model Console --kv-streaming auto setzen. fullDescription: | Qwen3.8-Flash-Next ist ein experimentelles KI-Modell des Qwen-Teams von Alibaba zum Beantworten von Fragen und Erzeugen von Texten. In kompatiblen Anwendungen unterstützt es Denkprozesse und Werkzeugaufrufe. Diese App führt die GSQ-RCO-IQ3_S-Quantisierung von ISTA-DASLab lokal mit Strata aus. diff --git a/strataqwen38iq3sv3/i18n/en-US/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/en-US/OlaresManifest.yaml index 8c3624a38..b5bb34805 100644 --- a/strataqwen38iq3sv3/i18n/en-US/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/en-US/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Qwen3.8-Flash-Next for text generation, reasoning, and tool calling, powered locally by Strata" spec: upgradeDescription: | - - Strata 0.2.13 (engine 0.1.59): new per-card DFlash2 drafting defaults — on 48 GB+ Blackwell cards IQ3_S drafts with a wider window at higher confidence (measured +2.8% decode on an RTX PRO 5000 72 GB; all other cards keep their 0.2.12 values); the app fetches the tuned drafter by itself when Auto picks it; plain engine starts now match the app's settings on Linux CUDA; on Linux the expert store loads through the file cache again when free RAM, the file cache, or huge pages can cover a shortfall (#5327); and the app opens noticeably faster. The model, the 262K context and image input are unchanged. + - Keeps the required CPU at 1300m. The app CPU limit is 20 cores, and the engine CPU limit defaults to 19 cores so all containers stay within that limit. + - Raises the app memory limit to 78 GiB and the engine memory limit to 75 GiB. + - Selects DFlash2 after its pack is downloaded and verified. Existing caches stay in the persistent /dflash2 directory. If preparation fails, the engine keeps MTP and records the reason. + - Keeps Strata UI on port 8080 without blocking startup. Model Console can open before the model finishes downloading and loading; Strata UI becomes available afterward. + - Downloads models directly from Hugging Face with Xet, so a large file is no longer stopped by the internal HTTP mirror’s per-file transfer limit. + - Set expert workers with --pool-workers in ENGINE_ARGS. They are no longer capped to the container CPU budget. Saved engine arguments are kept; set --kv-streaming auto in Model Console to use automatic KV streaming. fullDescription: | Qwen3.8-Flash-Next is an experimental AI model from Alibaba's Qwen team for answering questions and generating text, with support for thinking and tool calling in compatible applications. This app runs ISTA-DASLab's GSQ-RCO IQ3_S quantized edition locally using Strata. diff --git a/strataqwen38iq3sv3/i18n/es-ES/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/es-ES/OlaresManifest.yaml index 5a78392ce..c485fe274 100644 --- a/strataqwen38iq3sv3/i18n/es-ES/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/es-ES/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Qwen3.8-Flash-Next para generar texto, razonar y usar herramientas, ejecutado localmente con Strata" spec: upgradeDescription: | - - Strata 0.2.13 (motor 0.1.59): nuevos valores de borrador DFlash2 por tarjeta: en tarjetas Blackwell de 48 GB o más, IQ3_S borra con una ventana más amplia y mayor confianza (+2,8 % de decodificación medida en una RTX PRO 5000 de 72 GB; las demás tarjetas conservan los valores de 0.2.12); la app descarga sola el borrador afinado cuando Auto lo elige; en Linux CUDA los arranques directos del motor coinciden ahora con la configuración de la app; en Linux, el almacén de expertos vuelve a cargarse por la caché de archivos cuando la RAM libre, la caché o las páginas gigantes pueden cubrir el déficit (#5327); y la app se abre notablemente más rápido. El modelo, el contexto de 262K y la entrada de imágenes no cambian. + - La CPU requerida se mantiene en 1300m. El límite de CPU de la aplicación es de 20 núcleos, y el límite de CPU del motor es de 19 núcleos de forma predeterminada para que todos los contenedores queden dentro de ese límite. + - El límite de memoria de la aplicación sube a 78 GiB y el del motor a 75 GiB. + - Selecciona DFlash2 después de descargar y verificar su paquete. Las cachés existentes permanecen en el directorio persistente /dflash2. Si la preparación falla, el motor conserva MTP y registra el motivo. + - Mantiene Strata UI en el puerto 8080 sin bloquear el inicio. Model Console puede abrirse antes de que terminen la descarga y la carga del modelo; Strata UI queda disponible después. + - Descarga los modelos directamente desde Hugging Face con Xet, de modo que un archivo grande ya no se detiene por el límite de transferencia del espejo HTTP interno. + - Los workers expertos se configuran con --pool-workers en ENGINE_ARGS y ya no quedan limitados al presupuesto de CPU del contenedor. Se conservan los argumentos guardados del motor; defina --kv-streaming auto en Model Console para usar KV Streaming automático. fullDescription: | Qwen3.8-Flash-Next es un modelo experimental de IA del equipo Qwen de Alibaba para responder preguntas y generar texto, con funciones de razonamiento y uso de herramientas en aplicaciones compatibles. Esta aplicación ejecuta localmente la edición cuantizada GSQ-RCO IQ3_S de ISTA-DASLab mediante Strata. diff --git a/strataqwen38iq3sv3/i18n/fr-FR/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/fr-FR/OlaresManifest.yaml index 56df7dc90..096370fee 100644 --- a/strataqwen38iq3sv3/i18n/fr-FR/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/fr-FR/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Qwen3.8-Flash-Next pour générer du texte, raisonner et appeler des outils, en local avec Strata" spec: upgradeDescription: | - - Strata 0.2.13 (moteur 0.1.59) : nouveaux paramètres DFlash2 par carte — sur les cartes Blackwell de 48 Go et plus, IQ3_S ébauche avec une fenêtre plus large et une confiance plus élevée (+2,8 % de décodage mesuré sur une RTX PRO 5000 72 Go ; les autres cartes gardent les valeurs de 0.2.12) ; l'application télécharge seule l'assistant d'ébauche ajusté quand Auto le choisit ; sur Linux CUDA, les démarrages directs du moteur correspondent désormais aux réglages de l'application ; sur Linux, le magasin d'experts se recharge à nouveau par le cache de fichiers quand la RAM libre, le cache ou les pages géantes peuvent combler le manque (#5327) ; et l'application s'ouvre nettement plus vite. Le modèle, le contexte 262K et l'entrée d'images restent inchangés. + - Le CPU requis reste à 1300m. La limite CPU de l’application est de 20 cœurs, et la limite CPU du moteur est de 19 cœurs par défaut afin que tous les conteneurs restent dans cette limite. + - La limite mémoire de l’application passe à 78 GiB et celle du moteur à 75 GiB. + - Sélectionne DFlash2 une fois son pack téléchargé et vérifié. Les caches existants restent dans le répertoire persistant /dflash2. Si la préparation échoue, le moteur conserve MTP et enregistre la raison. + - Conserve Strata UI sur le port 8080 sans bloquer le démarrage. Model Console peut s’ouvrir avant la fin du téléchargement et du chargement du modèle ; Strata UI est disponible ensuite. + - Télécharge les modèles directement depuis Hugging Face avec Xet, afin qu’un fichier volumineux ne soit plus arrêté par la limite de transfert du miroir HTTP interne. + - Le nombre de workers experts se règle avec --pool-workers dans ENGINE_ARGS et n’est plus plafonné selon le budget CPU du conteneur. Les arguments enregistrés sont conservés ; définissez --kv-streaming auto dans Model Console pour activer le KV Streaming automatique. fullDescription: | Qwen3.8-Flash-Next est un modèle d'IA expérimental de l'équipe Qwen d'Alibaba conçu pour répondre aux questions et générer du texte, avec des fonctions de réflexion et d'appel d'outils dans les applications compatibles. Cette application exécute localement l'édition quantifiée GSQ-RCO IQ3_S d'ISTA-DASLab avec Strata. diff --git a/strataqwen38iq3sv3/i18n/it-IT/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/it-IT/OlaresManifest.yaml index b12a01a40..df79faa69 100644 --- a/strataqwen38iq3sv3/i18n/it-IT/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/it-IT/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Qwen3.8-Flash-Next per testo, ragionamento e chiamate a strumenti, eseguito in locale con Strata" spec: upgradeDescription: | - - Strata 0.2.13 (motore 0.1.59): nuovi valori DFlash2 per scheda grafica — sulle Blackwell da 48 GB in su IQ3_S usa una finestra di bozza più ampia e una confidenza più alta (+2,8% di decodifica misurata su una RTX PRO 5000 72 GB; le altre schede mantengono i valori di 0.2.12); l'app scarica da sola l'assistente di bozza ottimizzato quando Auto lo sceglie; su Linux CUDA gli avvi diretti del motore ora corrispondono alle impostazioni dell'app; su Linux il deposito degli esperti si ricarica di nuovo tramite la cache dei file quando RAM libera, cache o pagine enormi possono coprire il deficit (#5327); e l'app si apre visibilmente più velocemente. Modello, contesto 262K e input di immagini restano invariati. + - La CPU richiesta resta a 1300m. Il limite CPU dell’app è di 20 core e il limite CPU del motore è di 19 core per impostazione predefinita, così tutti i container restano entro quel limite. + - Il limite di memoria dell’app sale a 78 GiB e quello del motore a 75 GiB. + - Seleziona DFlash2 dopo aver scaricato e verificato il pacchetto. Le cache esistenti restano nella directory persistente /dflash2. Se la preparazione non riesce, il motore mantiene MTP e registra il motivo. + - Mantiene Strata UI sulla porta 8080 senza bloccare l’avvio. Model Console si può aprire prima del completamento di download e caricamento del modello; Strata UI è disponibile subito dopo. + - Scarica i modelli direttamente da Hugging Face con Xet, così un file grande non viene più fermato dal limite di trasferimento del mirror HTTP interno. + - I worker esperti si impostano con --pool-workers in ENGINE_ARGS e non sono più limitati al budget CPU del contenitore. Gli argomenti salvati restano; impostare --kv-streaming auto in Model Console per usare il KV Streaming automatico. fullDescription: | Qwen3.8-Flash-Next è un modello sperimentale di IA del team Qwen di Alibaba per rispondere a domande e generare testo, con supporto per il ragionamento e le chiamate a strumenti nelle applicazioni compatibili. Questa app esegue localmente l'edizione quantizzata GSQ-RCO IQ3_S di ISTA-DASLab usando Strata. diff --git a/strataqwen38iq3sv3/i18n/ja-JP/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/ja-JP/OlaresManifest.yaml index 6b4d110f5..409698447 100644 --- a/strataqwen38iq3sv3/i18n/ja-JP/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/ja-JP/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "Strataでローカル実行する、テキスト生成・推論・ツール呼び出しに対応したQwen3.8-Flash-Next" spec: upgradeDescription: | - - Strata 0.2.13(エンジン0.1.59): カード別のDFlash2ドラフト既定値が新設され、48GB以上のBlackwellカードではIQ3_Sがより広いドラフトウィンドウと高い信頼度で動作します(RTX PRO 5000 72 GBで復号+2.8%を計測、その他のカードは0.2.12の値を維持)。Autoがチューニング済みドラフターを選ぶとアプリが自動で取得し、Linuxではエンジン直接起動がアプリ設定と一致し、空きRAM・ファイルキャッシュ・巨大ページで不足を補える場合エキスパートストアがファイルキャッシュ経由で再び読み込まれ(#5327)、アプリの起動が明らかに速くなりました。モデル、262Kコンテキスト、画像入力は変更ありません。 + - 必要な CPU は 1300m のままです。アプリの CPU 上限は 20 コア、エンジンの CPU 上限は既定で 19 コアで、全コンテナがその上限内に収まります。 + - アプリのメモリ上限は 78 GiB、エンジンのメモリ上限は 75 GiB に上がります。 + - パックのダウンロードと検証後に DFlash2 を選択します。既存キャッシュは永続ディレクトリ /dflash2 に保持します。準備に失敗した場合は理由を記録し、MTP を使い続けます。 + - ポート 8080 の Strata UI を維持し、起動時にこの入口を待たなくなりました。Model Console はモデルのダウンロードと読み込みが終わる前に開け、Strata UI はその後に利用できます。 + - Xet を有効にして Hugging Face からモデルを直接ダウンロードするため、大きなファイルが内部 HTTP ミラーのファイルごとの転送制限で止まらなくなります。 + - エキスパートワーカー数は ENGINE_ARGS の --pool-workers で指定し、コンテナの CPU 割り当てでは自動制限しません。保存済みのエンジン引数は維持されます。自動 KV Streaming を使うには、Model Console で --kv-streaming auto に設定してください。 fullDescription: | Qwen3.8-Flash-Nextは、質問への回答やテキスト生成に使える、AlibabaのQwenチームによる実験的なAIモデルです。対応するアプリで思考機能やツール呼び出しを利用できます。このアプリは、ISTA-DASLabが提供するGSQ-RCO IQ3_S量子化版をStrataでローカル実行します。 diff --git a/strataqwen38iq3sv3/i18n/zh-CN/OlaresManifest.yaml b/strataqwen38iq3sv3/i18n/zh-CN/OlaresManifest.yaml index 91fb2e102..2cb8038bc 100644 --- a/strataqwen38iq3sv3/i18n/zh-CN/OlaresManifest.yaml +++ b/strataqwen38iq3sv3/i18n/zh-CN/OlaresManifest.yaml @@ -3,7 +3,12 @@ metadata: description: "通过 Strata 本地运行的 Qwen3.8-Flash-Next,支持文本生成、推理和工具调用" spec: upgradeDescription: | - - Strata 0.2.13(引擎 0.1.59):全新的按显卡 DFlash2 草稿默认值 —— 在 48 GB 及以上的 Blackwell 显卡上,IQ3_S 以更宽的草稿窗口、更高的置信度运行(RTX PRO 5000 72 GB 实测解码 +2.8%;其余显卡保持 0.2.12 取值);Auto 选定调优草稿模型时应用会自动下载;Linux 上直接启动引擎现在与应用设置保持一致;Linux 上专家存储在空闲内存、文件缓存或大页可补足缺口时经文件缓存重新加载(#5327);应用启动明显更快。模型、262K 上下文与图像输入保持不变。 + - 所需 CPU 保持 1300m。应用 CPU 上限为 20 核,引擎 CPU 上限默认为 19 核,使全部容器不超过该上限。 + - 应用内存上限提高到 78 GiB,引擎内存上限提高到 75 GiB。 + - 下载并校验通过后使用 DFlash2。已有缓存保存在持久化目录 /dflash2 中。准备失败时会记录原因,并继续使用 MTP。 + - 保留 8080 端口的 Strata UI,启动不再等待该入口。Model Console 可在模型下载和加载完成前打开,Strata UI 在加载完成后可用。 + - 模型直接从 Hugging Face 下载并启用 Xet,不再受内部 HTTP 镜像的单文件传输限制。 + - 在 ENGINE_ARGS 中用 --pool-workers 设置专家线程数,不再按容器 CPU 额度自动限制。已保存的引擎参数会保留;要使用自动 KV Streaming,请在 Model Console 中设置为 --kv-streaming auto。 fullDescription: | Qwen3.8-Flash-Next 是阿里巴巴 Qwen 团队推出的实验性 AI 模型,可用于回答问题和生成文本,并在兼容的应用中支持思考和工具调用。本应用通过 Strata 在本地运行 ISTA-DASLab 的 GSQ-RCO IQ3_S 量化版本。 diff --git a/strataqwen38iq3sv3/templates/llm-init.yaml b/strataqwen38iq3sv3/templates/llm-init.yaml index 438938048..6ad0d1385 100644 --- a/strataqwen38iq3sv3/templates/llm-init.yaml +++ b/strataqwen38iq3sv3/templates/llm-init.yaml @@ -46,7 +46,6 @@ {{- $modelSupports = join "," $expandedSupports -}} {{- $engineArgs := $oe.ENGINE_ARGS | default "" -}} {{- $logLevel := $oe.LOG_LEVEL | default "debug" -}} -{{- $hfEndpoint := $oe.HF_ENDPOINT | default "" -}} {{- $hfToken := $oe.HF_TOKEN | default "" -}} {{- $runStateHostPath := printf "%s/llm-init-run/%s" .Values.userspace.appCache .Release.Name -}} --- @@ -144,10 +143,9 @@ spec: {{- end }} - name: ENGINE_ARGS value: {{ $engineArgs | quote }} -{{- if $hfEndpoint }} - - name: HF_ENDPOINT - value: "{{ $hfEndpoint }}" -{{- end }} + # Bypass the internal HTTP mirror's 50 GB per-file limit. + - name: HF_ENABLE_XET + value: "true" {{- if $hfToken }} - name: HF_TOKEN valueFrom: diff --git a/strataqwen38iq3sv3/templates/strata.yaml b/strataqwen38iq3sv3/templates/strata.yaml index d7b52fa3c..fc3142fec 100644 --- a/strataqwen38iq3sv3/templates/strata.yaml +++ b/strataqwen38iq3sv3/templates/strata.yaml @@ -43,6 +43,10 @@ spec: # the shared HF cache remains read-only in the engine container. path: "{{ .Values.userspace.appCommon }}/huggingface/models--ISTA-DASLab--Qwen3.8-Flash-Next-GSQ-RCO-GGUF/mtp" type: DirectoryOrCreate + - name: dflash2 + hostPath: + path: "{{ .Values.userspace.appCommon }}/huggingface/models--ISTA-DASLab--Qwen3.8-Flash-Next-GSQ-RCO-GGUF/dflash2" + type: DirectoryOrCreate - name: wrappers configMap: name: llm-init-wrappers @@ -50,10 +54,11 @@ spec: initContainers: - name: init-permissions image: docker.io/beclab/aboveos-busybox:1.37.0 - command: [sh, -ec, "chown 1000:1000 /data"] + command: [sh, -ec, "chown 1000:1000 /data /dflash2"] securityContext: {runAsUser: 0} volumeMounts: - {name: strata-data, mountPath: /data} + - {name: dflash2, mountPath: /dflash2} resources: requests: {cpu: 10m, memory: 16Mi} limits: {cpu: 100m, memory: 64Mi} @@ -83,10 +88,6 @@ spec: value: {{ $oe.ENGINE_ARGS | quote }} - name: OMP_NUM_THREADS value: {{ .Values.strata.cpuThreads | quote }} -{{- if $oe.HF_ENDPOINT }} - - name: HF_ENDPOINT - value: {{ $oe.HF_ENDPOINT | quote }} -{{- end }} {{- if $oe.HF_TOKEN }} - name: HF_TOKEN valueFrom: @@ -114,15 +115,16 @@ spec: - {name: hf-cache, mountPath: /cache/hf/hub, readOnly: true} - {name: run-state, mountPath: /run/llm-init, readOnly: true} - {name: strata-data, mountPath: /data} + - {name: dflash2, mountPath: /dflash2} - {name: wrappers, mountPath: /llm-init/wrappers, readOnly: true} resources: requests: cpu: {{ $oe.STRATA_CPU_REQUEST | default "1" | quote }} - memory: {{ $oe.STRATA_MEMORY_REQUEST | default "4Gi" | quote }} + memory: {{ $oe.STRATA_MEMORY_REQUEST | default "56Gi" | quote }} nvidia.com/gpumem: {{ $gpuMiB }} limits: - cpu: {{ $oe.STRATA_CPU_LIMIT | default "12" | quote }} - memory: {{ $oe.STRATA_MEMORY_LIMIT | default "80Gi" | quote }} + cpu: {{ $oe.STRATA_CPU_LIMIT | default "19" | quote }} + memory: {{ $oe.STRATA_MEMORY_LIMIT | default "75Gi" | quote }} nvidia.com/gpumem: {{ $gpuMiB }} --- apiVersion: v1 diff --git a/strataqwen38iq3sv3/templates/wrappers.yaml b/strataqwen38iq3sv3/templates/wrappers.yaml index de3a733fc..d71d32a9f 100644 --- a/strataqwen38iq3sv3/templates/wrappers.yaml +++ b/strataqwen38iq3sv3/templates/wrappers.yaml @@ -90,6 +90,7 @@ data: import os from pathlib import Path import shlex + import shutil import signal import subprocess import sys @@ -103,6 +104,70 @@ data: } + def persist_dflash2(data, shared=Path('/dflash2')): + shared.mkdir(parents=True, exist_ok=True) + link = data / 'dflash2' + if link.is_symlink() and link.resolve() == shared.resolve(): + return + # Import an old cache only into an empty mount; ensure_for validates it below. + if not any(shared.iterdir()): + candidates = [link, data.parent / 'dflash2', *sorted(data.parent.glob('*/dflash2'))] + for previous in candidates: + if previous.is_dir() and previous.resolve() != shared.resolve(): + shutil.copytree(previous, shared, dirs_exist_ok=True) + print(f'[strata] imported DFlash2 cache from {previous}', flush=True) + break + if link.is_symlink(): + link.unlink() + elif link.exists(): + backup = data / 'dflash2.legacy' + if backup.exists(): + raise FileExistsError(f'Refusing to overwrite previous Draft cache: {backup}') + link.rename(backup) + link.symlink_to(shared, target_is_directory=True) + + + def prepare_drafting(cfg, data, root, family): + # Swift is not supported by the 0.2.13 DFlash2 drafter. + cfg['drafting'] = 'mtp' + if family == 'swift': + print('[strata] Swift keeps MTP: DFlash2 is unsupported by this engine version', flush=True) + return + try: + sys.path.insert(0, str(root)) + from strata_control import drafting, drafting_fetch + from serve.server import drafting_vram_mib + backend, archs = drafting.detect_hardware() + vram = drafting_vram_mib(cfg, backend, archs) + sa = [str(a) for a in cfg.get('args') or []] + slots = next((int(sa[sa.index(k) + 1]) for k in ('--batch', '--slots', '--parallel') + if k in sa and sa.index(k) + 1 < len(sa) and sa[sa.index(k) + 1].isdigit()), 1) + choice = drafting.choice_of('dflash2', model_name=cfg.get('model_name'), family=family, + backend=backend, archs=archs, args=sa, vram_mib=vram) + if choice != 'dflash2' or slots > 1: + print('[strata] DFlash2 is incompatible with this hardware or parallel configuration; keeping MTP', flush=True) + return + persist_dflash2(data) + print('[strata] preparing verified DFlash2 pack in /dflash2 before engine launch', flush=True) + pack = drafting_fetch.ensure_for( + data, model_name=cfg.get('model_name'), backend=backend, archs=archs, + args=sa, vram_mib=vram, throttle=True, + progress=lambda msg, _done, _total: print(f'[strata] {msg}', flush=True)) + if pack is None: + print('[strata] DFlash2 download unavailable; keeping MTP', flush=True) + return + candidate = dict(cfg, args=list(sa), drafting='dflash2') + dec = drafting.apply(candidate, klass=drafting.card_class(archs), data_dir=data, + family=family, backend=backend, archs=archs, vram_mib=vram, + slots=slots, engine=str(root / 'engine' / 'strata')) + if dec.drafter != 'dflash2': + raise RuntimeError(f'DFlash2 could not be enabled: {dec.note}') + cfg.update(candidate) + print(f'[strata] drafting {dec.asked} -> {dec.drafter} note={dec.note}', flush=True) + except Exception as exc: + print(f'[strata] DFlash2 preparation failed ({exc}); keeping MTP', flush=True) + + def setup_args(raw): args = shlex.split(raw) for arg in args: @@ -169,8 +234,8 @@ data: '--family', 'qwen', '--model', 'IQ3_S', '--backend', 'cuda', '--gpu', '0', '--vision', 'cpu', '--data-dir', str(data), '--gguf-dir', str(gguf), '--host', '0.0.0.0', '--port', port, - '--context', '32768', '--parallel', '1', - '--resident-budget-gib', '48', '--kv', 'int8', '--kv-streaming', 'off', + '--context', '262144', '--parallel', '1', + '--resident-budget-gib', '48', '--kv', 'int8', '--kv-streaming', 'auto', '--vram-reserve-mib', '1024', *args] print('[strata] preparing GGUF and MTP cache; first start can take several minutes', flush=True) run_setup(command, root) @@ -180,7 +245,9 @@ data: raise FileNotFoundError(f'setup.py wrote no strata-*.json under {root}') generated = candidates[0] cfg = json.loads(generated.read_text()) - cfg['model_name'] = os.environ['MODEL_NAME'] # /v1/models must match Model Console. + public_name = os.environ['MODEL_NAME'] + if public_name != cfg.get('model_name'): + cfg['aliases'] = list(dict.fromkeys([*(cfg.get('aliases') or []), public_name])) cfg['log'] = str(data / 'engine.log') cfg['open_browser'] = False # DNS-rebinding guard (server.py host_allowed): the Olares entrance sends @@ -189,34 +256,7 @@ data: # already gated: the engine binds to the pod network, and the entrance # requires an Olares session (authLevel internal) before it proxies. cfg['allowed_hosts'] = ['*'] - # Strata 0.2.10: DFlash2 is the default drafter. setup.py regenerates this - # config every boot and leaves drafting ABSENT (which keeps the legacy MTP - # args); "auto" = both drafters current, each request picks one (rule df2). - # Packs fetched once with the terminal's `strata drafting fetch` (pinned - # download, SHA-256 checked): arena dflash2/ holds q4_0 + converted selq4. - cfg['drafting'] = 'auto' - # Apply the drafting choice to the engine arguments HERE, the way `strata - # launch` does: setup.py only writes legacy MTP args, and server.py merely - # consumes args + restart-fallbacks (it never applies). Pack already sits - # at /dflash2/ (fetched once, sha-pinned). Loud on failure: staying - # on MTP is a safe fallback but must be visible in the log. - try: - sys.path.insert(0, str(root)) - from strata_control import drafting - eb = json.loads((root / 'engine' / 'BUILD.json').read_text()) - archs = [int(a) for a in str(eb.get('archs', '')).replace(',', ';').split(';') if a.strip().isdigit()] - # slots as server.py reads them: --batch/--slots/--parallel in the engine - # args (0/absent = one at a time). Dormant while parallel cannot run - # DFlash2; correct the day upstream removes that limit (coldniko on X). - sa = [str(a) for a in cfg.get('args') or []] - slots = next((int(sa[sa.index(k) + 1]) for k in ('--batch', '--slots', '--parallel') - if k in sa and sa.index(k) + 1 < len(sa) and sa[sa.index(k) + 1].isdigit()), 1) - dec = drafting.apply(cfg, klass=drafting.card_class(archs), data_dir=drafting.data_dir_of(cfg['args']), - family='qwen', backend='cuda', archs=archs, vram_mib=24453.0, slots=slots, - engine=str(root / 'engine' / 'strata')) - print(f"[strata] drafting {dec.asked} -> {dec.drafter} flags={list(dec.flags)}{' note=' + dec.note if dec.note else ''}", flush=True) - except Exception as exc: - print(f'[strata] drafting apply FAILED ({exc}); engine stays on the args setup.py wrote', flush=True) + prepare_drafting(cfg, data, root, 'qwen') cfg.pop('api_key', None) # internal ClusterIP only; Olares authenticates the entrance. target = data / 'server.json' temporary = target.with_suffix('.tmp')