0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Cloud Run + gcsfuse で Value too large for defined data type エラーが出たら

Posted at

Cloud Run で LLM を動かそうとしているのですが、 llama.cpp で GCS 上の weights ファイルに gcsfuse を介してアクセスしようとすると次のエラーが出てデプロイに失敗しました。
参考までに、ファイルサイズは 4GB 程度でした。

terminate called after throwing an instance of 'std::runtime_error'
 what(): failed to open /mnt/gcs/xxxx.bin: Value too large for defined data type

これはどうやら Cloud Run の実行環境として第 1 世代が選択されている場合に起こるようです。

スクリーンショット 2023-06-21 22.57.52.png

条件は把握してないですが、デフォルトにしておくとうっかり第 1 世代で起動するので、明示的に第 2 世代にしておきましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?