[{"data":1,"prerenderedAt":452},["ShallowReactive",2],{"navigation_docs_zh_tw":3,"-zh-tw-guide-model-provider-deploy-fine-tuned-model":69,"-zh-tw-guide-model-provider-deploy-fine-tuned-model-surround":447},[4],{"title":5,"path":6,"stem":7,"children":8,"page":33},"開發指南","\u002Fzh-tw\u002Fguide","zh-tw\u002F01.guide",[9,12,34],{"title":5,"path":10,"stem":11},"\u002Fzh-tw\u002Fguide\u002Foverview","zh-tw\u002F01.guide\u002F01.overview",{"title":13,"path":14,"stem":15,"children":16,"page":33},"Model Provider","\u002Fzh-tw\u002Fguide\u002Fmodel-provider","zh-tw\u002F01.guide\u002F02.model-provider",[17,21,25,29],{"title":18,"path":19,"stem":20},"概觀","\u002Fzh-tw\u002Fguide\u002Fmodel-provider\u002Foverview","zh-tw\u002F01.guide\u002F02.model-provider\u002F01.overview",{"title":22,"path":23,"stem":24},"部署微調模型","\u002Fzh-tw\u002Fguide\u002Fmodel-provider\u002Fdeploy-fine-tuned-model","zh-tw\u002F01.guide\u002F02.model-provider\u002F02.deploy-fine-tuned-model",{"title":26,"path":27,"stem":28},"準備 model template","\u002Fzh-tw\u002Fguide\u002Fmodel-provider\u002Fprepare-model-template","zh-tw\u002F01.guide\u002F02.model-provider\u002F03.prepare-model-template",{"title":30,"path":31,"stem":32},"官方出貨通道","\u002Fzh-tw\u002Fguide\u002Fmodel-provider\u002Fshipping-channel","zh-tw\u002F01.guide\u002F02.model-provider\u002F04.shipping-channel",false,{"title":35,"path":36,"stem":37,"children":38,"page":33},"ISV","\u002Fzh-tw\u002Fguide\u002Fisv","zh-tw\u002F01.guide\u002F03.isv",[39,42,46,50,54,58,61,65],{"title":18,"path":40,"stem":41},"\u002Fzh-tw\u002Fguide\u002Fisv\u002Foverview","zh-tw\u002F01.guide\u002F03.isv\u002F01.overview",{"title":43,"path":44,"stem":45},"準備 app template","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fprepare-app-template","zh-tw\u002F01.guide\u002F03.isv\u002F02.prepare-app-template",{"title":47,"path":48,"stem":49},"準備 arx.yaml","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fprepare-arx-yaml","zh-tw\u002F01.guide\u002F03.isv\u002F03.prepare-arx-yaml",{"title":51,"path":52,"stem":53},"準備 Helm chart","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fprepare-helm-chart","zh-tw\u002F01.guide\u002F03.isv\u002F04.prepare-helm-chart",{"title":55,"path":56,"stem":57},"上架測試","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fpublish-to-app-market","zh-tw\u002F01.guide\u002F03.isv\u002F05.publish-to-app-market",{"title":30,"path":59,"stem":60},"\u002Fzh-tw\u002Fguide\u002Fisv\u002Fshipping-channel","zh-tw\u002F01.guide\u002F03.isv\u002F06.shipping-channel",{"title":62,"path":63,"stem":64},"API 模型呼叫","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fapi-model-calls","zh-tw\u002F01.guide\u002F03.isv\u002F07.api-model-calls",{"title":66,"path":67,"stem":68},"掛載遠端儲存","\u002Fzh-tw\u002Fguide\u002Fisv\u002Fmount-remote-storage","zh-tw\u002F01.guide\u002F03.isv\u002F08.mount-remote-storage",{"id":70,"title":71,"body":72,"description":440,"extension":441,"links":442,"meta":443,"navigation":444,"path":23,"seo":445,"stem":24,"__hash__":446},"docs_zh_tw\u002Fzh-tw\u002F01.guide\u002F02.model-provider\u002F02.deploy-fine-tuned-model.md","在 ARX 裝置上部署您微調的模型",{"type":73,"value":74,"toc":427},"minimark",[75,78,82,85,88,91,104,111,114,119,122,137,140,151,256,270,273,277,291,295,332,336,363,378,392,407,410],[76,77,18],"h2",{"id":18},[79,80,81],"p",{},"ARX 運行於具備 GPU 資源的伺服器上。除了 AI Model Center 既有的開源模型之外，您也可以部署自行微調的模型。",[79,83,84],{},"將微調後的模型上傳到您的 private Hugging Face repository，並在 ARX 中儲存 Hugging Face access token，AI Model Center 就能找到並部署該模型。",[79,86,87],{},"本文說明 ARX 要求的模型格式與檔案，以及完整的上傳與部署流程。",[76,89,90],{"id":90},"您將學到",[92,93,94,98,101],"ul",{},[95,96,97],"li",{},"檢查微調模型的格式與檔案是否符合 ARX 要求",[95,99,100],{},"將模型上傳至 private Hugging Face repository",[95,102,103],{},"從 AI Model Center 下載並部署模型",[79,105,106,110],{},[107,108,109],"strong",{},"預估時間：約 20 分鐘","（不含上傳與下載時間）",[76,112,113],{"id":113},"適用版本",[92,115,116],{},[95,117,118],{},"ARX OS 1.0 以上",[76,120,121],{"id":121},"開始之前",[92,123,124,134],{},[95,125,126,127],{},"您已有 Hugging Face 帳號，並在 ARX 中儲存了 access token。請見",[128,129,133],"a",{"href":130,"rel":131},"https:\u002F\u002Fdocs.ardge.com\u002Fzh-tw\u002Fknowledge\u002Farx-os\u002Fhuggingface-token",[132],"nofollow","註冊 Hugging Face 帳號並取得 access token",[95,135,136],{},"您的帳號具有 AI Model Center 的存取權限",[76,138,139],{"id":139},"支援的格式與必要檔案",[79,141,142,143,146,147,150],{},"ARX 支援兩種權重格式：",[107,144,145],{},"safetensors"," 與 ",[107,148,149],{},"GGUF","。上傳前請確認 repository 內含以下檔案：",[152,153,154,170],"table",{},[155,156,157],"thead",{},[158,159,160,164,167],"tr",{},[161,162,163],"th",{},"檔案",[161,165,166],{},"用途",[161,168,169],{},"何時需要",[171,172,173,188,200,212,230,243],"tbody",{},[158,174,175,182,185],{},[176,177,178],"td",{},[179,180,181],"code",{},"config.json",[176,183,184],{},"模型架構設定",[176,186,187],{},"一律需要",[158,189,190,195,198],{},[176,191,192],{},[179,193,194],{},"tokenizer.json",[176,196,197],{},"tokenizer 本體",[176,199,187],{},[158,201,202,207,210],{},[176,203,204],{},[179,205,206],{},"tokenizer_config.json",[176,208,209],{},"tokenizer 設定",[176,211,187],{},[158,213,214,225,228],{},[176,215,216,217,220,221,224],{},"權重檔（",[179,218,219],{},"*.safetensors"," 或 ",[179,222,223],{},"*.gguf","）",[176,226,227],{},"模型權重",[176,229,187],{},[158,231,232,237,240],{},[176,233,234],{},[179,235,236],{},"model.safetensors.index.json",[176,238,239],{},"權重的分片索引",[176,241,242],{},"權重拆成多個檔案時",[158,244,245,250,253],{},[176,246,247],{},[179,248,249],{},"preprocessor_config.json",[176,251,252],{},"輸入前處理設定",[176,254,255],{},"視覺模型",[257,258,259,264],"tip",{},[79,260,261],{},[107,262,263],{},"微調自熱門開源模型？多數檔案可直接沿用：",[79,265,266,267,269],{},"這些檔案通常可以取自原始模型的 repository，只有 ",[179,268,181],{}," 需要依您的微調方式更新。",[79,271,272],{},"ARX 支援 vLLM、NVIDIA vLLM、Llama.cpp 與 Faster Whisper 作為部署引擎。引擎由您自行選擇——步驟 3 下載模型時，介面會引導您完成設定。",[76,274,276],{"id":275},"步驟-1確認模型檔案完整","步驟 1：確認模型檔案完整",[278,279,280,283,286],"ol",{},[95,281,282],{},"對照上方清單檢查微調模型的目錄",[95,284,285],{},"補齊缺少的檔案",[95,287,288,289],{},"依您的微調方式更新 ",[179,290,181],{},[76,292,294],{"id":293},"步驟-2將模型上傳至-private-hugging-face-repository","步驟 2：將模型上傳至 private Hugging Face repository",[278,296,297,306,312,319,326],{},[95,298,299,300,305],{},"登入 Hugging Face，前往 ",[128,301,304],{"href":302,"rel":303},"https:\u002F\u002Fhuggingface.co\u002Fnew",[132],"huggingface.co\u002Fnew"," 建立 model repository",[95,307,308,309],{},"輸入 repository 名稱，並將可見性設為 ",[107,310,311],{},"Private",[95,313,314,315,318],{},"開啟該 repository 的 ",[107,316,317],{},"Files and versions"," 分頁",[95,320,321,322,325],{},"點擊 ",[107,323,324],{},"Add file › Upload files","，選取您的模型檔案",[95,327,328,329],{},"填寫 commit message，然後點擊 ",[107,330,331],{},"Commit changes",[76,333,335],{"id":334},"步驟-3從-ai-model-center-下載並部署","步驟 3：從 AI Model Center 下載並部署",[278,337,338,345,351,354,360],{},[95,339,340,341,344],{},"開啟 AI Model Center，前往 ",[107,342,343],{},"Model Hub"," 頁面",[95,346,347,348,318],{},"切換到 ",[107,349,350],{},"Hugging Face",[95,352,353],{},"搜尋您上傳的模型，其卡片會出現在結果中",[95,355,356,357],{},"在卡片上點擊 ",[107,358,359],{},"Download & Deploy",[95,361,362],{},"依提示選擇部署引擎與其設定",[79,364,365,366,369,370,373,374,377],{},"模型會從 Hugging Face 下載，所需時間取決於模型大小與網路速度，即時進度可在 ",[107,367,368],{},"Downloaded Model"," 頁面查看。下載完成後隨即開始部署，切換到 ",[107,371,372],{},"Model Instance"," 頁面即可追蹤；狀態顯示 ",[107,375,376],{},"Running"," 表示部署完成。",[379,380,381,386],"warning",{},[79,382,383],{},[107,384,385],{},"private repository 的模型需先在 ARX 中儲存 access token：",[79,387,388,389,391],{},"未儲存 token 時，",[107,390,350],{}," 分頁找不到您 private repository 中的模型。",[257,393,394,399],{},[79,395,396],{},[107,397,398],{},"部署前先確認 GPU 容量：",[79,400,401,402],{},"若目標顯示卡的剩餘容量不足以支應模型的預估用量，系統會擋下該次部署。請見 ",[128,403,406],{"href":404,"rel":405},"https:\u002F\u002Fdocs.ardge.com\u002Fzh-tw\u002Fknowledge\u002Farx-os\u002Fgpu-vram-allocated",[132],"GPU VRAM Allocated 是什麼意思？",[76,408,409],{"id":409},"相關文章",[92,411,412,417,422],{},[95,413,414],{},[128,415,133],{"href":130,"rel":416},[132],[95,418,419],{},[128,420,406],{"href":404,"rel":421},[132],[95,423,424],{},[128,425,426],{"href":63},"透過 API 呼叫 ARX 上的地端模型",{"title":428,"searchDepth":429,"depth":429,"links":430},"",2,[431,432,433,434,435,436,437,438,439],{"id":18,"depth":429,"text":18},{"id":90,"depth":429,"text":90},{"id":113,"depth":429,"text":113},{"id":121,"depth":429,"text":121},{"id":139,"depth":429,"text":139},{"id":275,"depth":429,"text":276},{"id":293,"depth":429,"text":294},{"id":334,"depth":429,"text":335},{"id":409,"depth":429,"text":409},"檢查微調後的模型是否符合 ARX 要求的格式與檔案、上傳至 private Hugging Face repository，再從 AI Model Center 下載並部署","md",null,{},{"title":22},{"title":71,"description":440},"IGOf2EyvHz6vugf7ByLqNgc1tCd2YnzgzVM-JA3JyNw",[448,450],{"title":18,"path":19,"stem":20,"description":449,"children":-1},"ARX 如何部署您的模型：從 Hugging Face repository 到運行中模型執行個體的介面流程、支援的推論引擎，以及模型對外提供的 API",{"title":26,"path":27,"stem":28,"description":451,"children":-1},"撰寫讓模型出現在 AI Model Center 的 ARX model template：collection 與 variant 結構、宣告模型本身的 model 區塊、模型的下載來源，以及服務它的推論引擎",1795763807169]