Status on cloudpickle non-determinism
まだ誰も着手していません。
評価
調査の方向性
まず issue #385 と PR #428 を確認し、その後、最小限の関数に対して pickletools.dis を使って報告された順序の違いを再現してください。issue には短いテストケースもソースファイルもありません。完了条件は、決定論的な pickle に関するプロジェクトの公式見解を確立し、cloudpickle 2.0.0 の挙動について明確な解決策を記録することです。
索引モデルが issue の本文から書いたものです。
説明
Hello,
@ogrisel mentioned in this comment (https://github.com/cloudpipe/cloudpickle/issues/385#issuecomment-661103789):
Anyway, having deterministic pickles is probably out of scope for cloudpickle so I would be in favor of closing this issue.
However, @ogrisel also pushed a PR (#428) which was released as part of cloudpickle 2.0.0 that tried to address non determinism owing to dictionary ordering.
I wanted to confirm what is the official status of the project regarding non determinism because I am still seeing non deterministic pickles in cloudpickle 2.0.0
Here is the pickletools.dis outputs of a function:
...
2539: ( MARK
2540: \x8c SHORT_BINUNICODE 'correlation_matrix'
2560: \x94 MEMOIZE (as 115)
2561: \x8c SHORT_BINUNICODE 'drifts_annual'
2576: \x94 MEMOIZE (as 116)
2577: \x8c SHORT_BINUNICODE 'initial_prices'
2593: \x94 MEMOIZE (as 117)
2594: \x8c SHORT_BINUNICODE 'volatilities_annual'
2615: \x94 MEMOIZE (as 118)
2616: \x91 FROZENSET (MARK at 2539)
2617: \x94 MEMOIZE (as 119)
...
pickle of a function on second attempt:
...
2539: ( MARK
2540: \x8c SHORT_BINUNICODE 'volatilities_annual'
2561: \x94 MEMOIZE (as 115)
2562: \x8c SHORT_BINUNICODE 'initial_prices'
2578: \x94 MEMOIZE (as 116)
2579: \x8c SHORT_BINUNICODE 'drifts_annual'
2594: \x94 MEMOIZE (as 117)
2595: \x8c SHORT_BINUNICODE 'correlation_matrix'
2615: \x94 MEMOIZE (as 118)
2616: \x91 FROZENSET (MARK at 2539)
2617: \x94 MEMOIZE (as 119)
...
As you can see, the entries are all the same, but shuffled around.
This function is part of a large project, so unfortunately I can't produce a short test case right now.
Notice that kubeflow pipelines implement caching by making sure that pickle of the function hasn't changed. (there is an option to not use pickle as well, but it has its own problems). Having a non deterministic cloudpickle invalidates the cache every time making that feature useless.
Thanks.
- 主要言語
- Python
- スター
- 1.9k
- フォーク
- 197
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudpipe/cloudpickle のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudpipe/cloudpickle#593 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
cloudpipe/cloudpickle#595 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
cloudpipe/cloudpickle#592 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudpipe/cloudpickle#589 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
cloudpipe/cloudpickle#587 ·
cloudpipe/cloudpickle の issue をすべて見る
似ている issue
-
bug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
prowler-cloud/prowler#12887 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: desktop platform: macos priority: p3 status: ready type: enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
use-agent-os/agent-os#3484 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
open-telemetry/opentelemetry-python-contrib#5113 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
external
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/docs#6255 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信