`kaggle models instances versions list` returns the versions of every instance of the model

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
api, cli

調査の方向性

Start with model_instance_versions_list and ApiListModelInstanceVersionsRequest, then compare its request construction with the working kaggle models instances versions files command. Reproduce the listing with a model that has multiple instance variations and trace whether instance_slug is preserved in the request. Done means the list endpoint returns only versions belonging to the requested instance, with the unrelated variation slugs absent.

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

説明

bug dependencies

What happens

kaggle models instances versions list <owner>/<model>/<framework>/<instance> lists versions of all the model's
instances (variations), not only the one given:

$ kaggle models instances versions list qwen-lm/qwen-3/transformers/8b-base
      version  variation                    title         private
-------------  ---------------------------  ----------  ---------
            1  235b-a22b-thinking-2507-fp8  Qwen 3          False
            1  235b-a22b-thinking-2507      Qwen 3          False
            1  30b-a3b-thinking-2507        Qwen 3          False
...

qwen-lm/qwen-3/transformers/14b-base gives the same list. With the Python API,
KaggleApi().model_instance_versions_list("qwen-lm/qwen-3/transformers/8b-base", page_size=50) returns 45
versions whose variation_slug covers every Qwen 3 variation (0.6b, 0.6b-base, ..., 235b-a22b-thinking-2507-fp8).
The same thing happens for qwen-lm/qwen2.5/transformers/7b.

Expected

Only the versions of 8b-base. For this instance that is version 1.

Notes

The client seems to send the instance correctly. model_instance_versions_list sets instance_slug on
ApiListModelInstanceVersionsRequest, and the request's path is
/api/v1/models/qwen-lm/qwen-3/MODEL_FRAMEWORK_TRANSFORMERS/8b-base/list. kaggle models instances versions files qwen-lm/qwen-3/transformers/8b-base/1 builds its request the same way and returns the right files. So the filter
looks like it is dropped on the server side of ListModelInstanceVersions.

Kaggle CLI 2.2.4, Windows 10, Python 3.13. The code is unchanged on main (941236a, release 2.2.5).

主要言語
Python
スター
7.7k
フォーク
1.5k
平均マージ
1日 6時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

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

Kaggle/kaggle-cli のほかの issue

Kaggle/kaggle-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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