Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Build failure: unable to download model_quantized.onnx from Hugging Face

オープン
#51 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp, huggingface

調査の方向性

samples/ExampleBlazorApp で dotnet build を実行して失敗を再現し、SmartComponents.LocalEmbeddings.targets の 39 行目を調査して、Hugging Face モデルの URL を確認します。model_quantized.onnx が利用可能かどうかを確認し、target またはパッケージのドキュメントを更新する必要があるかどうかを判断します。報告された Windows 環境でサンプルが正常にビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Build failure: unable to download model_quantized.onnx from Hugging Face

Repository: dotnet-smartcomponents/smartcomponents

Environment

  • OS: Windows
  • Project: samples/ExampleBlazorApp
  • Package: SmartComponents.LocalEmbeddings 0.1.0-preview10145

Observed behavior
When running dotnet build the build fails while attempting to download a model from Hugging Face. The error indicates the SSL connection could not be established and the transport connection was closed by the remote host.

Error (excerpt)

Restore complete (0.5s)
  ExampleBlazorApp net8.0 failed with 1 error(s) (0.2s)
    C:\Users\MPhil\.nuget\packages\smartcomponents.localembeddings\0.1.0-preview10145\build\SmartComponents.LocalEmbeddings.targets(39,9): error MSB3923: Failed to download file "https://huggingface.co/SmartComponents/bge-micro-v2/resolve/72908b7/onnx/model_quantized.onnx".  The SSL connection could not be established, see inner exception. ---> Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.. ---> An existing connection was forcibly closed by the remote host.

Build failed with 1 error(s) in 0.9s

Steps to reproduce

  1. Clone the repository.
  2. Open samples/ExampleBlazorApp.
  3. Run dotnet build.
  4. Observe the error shown above during restore/build.

Hypothesis
The file onnx/model_quantized.onnx at the URL above may have been moved, removed, or the Hugging Face path changed. As a result the build-target that attempts to download the file fails with an SSL/connection error.

Suggested next steps / possible fixes

  • Verify whether the model exists at the Hugging Face URL and update the URL in the NuGet package/targets if it changed.
  • Consider bundling a tested model asset with the package or providing a more reliable host or retry/backoff logic in SmartComponents.LocalEmbeddings.targets.
  • If the model was intentionally removed, update package documentation and targets to reflect the new location or provide guidance for users to obtain the model manually.

Additional context

  • Reported by user when building locally on Windows (exact output included above).
主要言語
C#
スター
510
フォーク
61
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/smartcomponents のほかの issue

dotnet/smartcomponents の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。