genmodelfit 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- genmodelfit-0.1.0/.gitignore +9 -0
- genmodelfit-0.1.0/CHANGELOG.md +51 -0
- genmodelfit-0.1.0/CONTRIBUTING.md +133 -0
- genmodelfit-0.1.0/LICENSE +373 -0
- genmodelfit-0.1.0/PKG-INFO +350 -0
- genmodelfit-0.1.0/README.md +310 -0
- genmodelfit-0.1.0/THIRD_PARTY_NOTICES +88 -0
- genmodelfit-0.1.0/docs/accuracy.md +231 -0
- genmodelfit-0.1.0/docs/gate.md +229 -0
- genmodelfit-0.1.0/docs/hardware.md +299 -0
- genmodelfit-0.1.0/docs/release.md +196 -0
- genmodelfit-0.1.0/docs/schema.md +531 -0
- genmodelfit-0.1.0/docs/sources.md +442 -0
- genmodelfit-0.1.0/pyproject.toml +73 -0
- genmodelfit-0.1.0/src/genmodelfit/__init__.py +192 -0
- genmodelfit-0.1.0/src/genmodelfit/__main__.py +7 -0
- genmodelfit-0.1.0/src/genmodelfit/_version.py +7 -0
- genmodelfit-0.1.0/src/genmodelfit/bench.py +980 -0
- genmodelfit-0.1.0/src/genmodelfit/calibrate.py +310 -0
- genmodelfit-0.1.0/src/genmodelfit/cli.py +1255 -0
- genmodelfit-0.1.0/src/genmodelfit/data/__init__.py +3 -0
- genmodelfit-0.1.0/src/genmodelfit/data/calibration.json +257 -0
- genmodelfit-0.1.0/src/genmodelfit/data/db.json +40998 -0
- genmodelfit-0.1.0/src/genmodelfit/data/measurements.json +194 -0
- genmodelfit-0.1.0/src/genmodelfit/data/signing_keys/2026-10.pub +3 -0
- genmodelfit-0.1.0/src/genmodelfit/db.py +195 -0
- genmodelfit-0.1.0/src/genmodelfit/estimate.py +1199 -0
- genmodelfit-0.1.0/src/genmodelfit/families.py +261 -0
- genmodelfit-0.1.0/src/genmodelfit/fetch.py +339 -0
- genmodelfit-0.1.0/src/genmodelfit/gate.py +625 -0
- genmodelfit-0.1.0/src/genmodelfit/groups.py +491 -0
- genmodelfit-0.1.0/src/genmodelfit/hardware.py +1120 -0
- genmodelfit-0.1.0/src/genmodelfit/hf.py +1284 -0
- genmodelfit-0.1.0/src/genmodelfit/models.py +307 -0
- genmodelfit-0.1.0/src/genmodelfit/py.typed +0 -0
- genmodelfit-0.1.0/src/genmodelfit/recommend.py +566 -0
- genmodelfit-0.1.0/src/genmodelfit/remote.py +176 -0
- genmodelfit-0.1.0/src/genmodelfit/safety.py +254 -0
- genmodelfit-0.1.0/src/genmodelfit/signing.py +151 -0
- genmodelfit-0.1.0/src/genmodelfit/status.py +120 -0
- genmodelfit-0.1.0/src/genmodelfit/table.py +394 -0
- genmodelfit-0.1.0/src/genmodelfit/tasks.py +146 -0
- genmodelfit-0.1.0/src/genmodelfit/update.py +1239 -0
- genmodelfit-0.1.0/src/genmodelfit/workflow.py +547 -0
- genmodelfit-0.1.0/tests/clihelp.py +36 -0
- genmodelfit-0.1.0/tests/conftest.py +38 -0
- genmodelfit-0.1.0/tests/fixtures/3d_hunyuan3d_image_to_model.json +678 -0
- genmodelfit-0.1.0/tests/fixtures/audio_ace_step_1_5_checkpoint.json +764 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/lspci_amd_nvidia.txt +6 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_garbage.txt +5 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_multi.csv +2 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_na.csv +2 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_no_devices.txt +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_no_driver.txt +2 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_old_error.txt +2 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_old_kepler.csv +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_old_maxwell.csv +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/nvsmi_rtx3070_win.csv +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/registry_amd_stale.json +17 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/registry_this_pc.json +11 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/wmi_amd_single.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/wmi_basic_nvidia.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/wmi_intel_nvidia.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/hardware/wmi_this_pc.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/image_sdxl_simple.json +491 -0
- genmodelfit-0.1.0/tests/fixtures/image_z_image_turbo_int8.json +1067 -0
- genmodelfit-0.1.0/tests/fixtures/object_info_subset.json +1708 -0
- genmodelfit-0.1.0/tests/fixtures/text_to_video_wan.json +601 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/ACE-Step__Ace-Step1.5.json +34 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/AtomicChat__Qwen-Image-2.1-Turbo-Uncensored-GGUF.json +136 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Comfy-Org__Wan_2.1_ComfyUI_repackaged.json +52 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Comfy-Org__ace_step_1.5_ComfyUI_files.json +39 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Comfy-Org__hunyuan3D_2.0_repackaged.json +42 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Comfy-Org__stable-audio-open-1.0_repackaged.json +41 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Comfy-Org__z_image_turbo.json +79 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/ComfyUI-Wiki__t5-base.json +31 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/MeiGen-AI__InfiniteTalk.json +25 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Noctaluna__Noct-Q-Uncensored-Qwen-Image-2.1.json +112 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Qwen__Qwen-Image-2.1.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Qwen__Qwen3-VL-8B-Instruct.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Tongyi-MAI__Z-Image-Turbo.json +37 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-FLF2V-14B-720P.json +28 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-I2V-14B-480P.json +31 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-I2V-14B-720P.json +31 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-T2V-1.3B.json +31 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-T2V-14B.json +30 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-VACE-1.3B.json +36 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/Wan-AI__Wan2.1-VACE-14B.json +36 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/alibaba-pai__Wan2.1-Fun-V1.1-1.3B-Control-Camera.json +32 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/alibaba-pai__Wan2.1-Fun-V1.1-1.3B-Control.json +32 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/alibaba-pai__Wan2.1-Fun-V1.1-1.3B-InP.json +32 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/alibaba-pai__Wan2.1-Fun-V1.1-14B-Control-Camera.json +32 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/example-org__plain-nsfw-xl.json +24 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/hexgrad__Kokoro-82M.json +692 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/htdong__Wan-Alpha.json +31 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/stabilityai__stable-audio-open-1.0.json +36 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/tencent__Hunyuan3D-2.json +34 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/tencent__Hunyuan3D-2mv.json +32 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf/yl4579__StyleTTS2-LJSpeech.json +1 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_readme/AtomicChat__Qwen-Image-2.1-Turbo-Uncensored-GGUF.md +6 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_readme/Noctaluna__Noct-Q-Uncensored-Qwen-Image-2.1.md +6 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_readme/example-org__plain-nsfw-xl.md +3 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_readme/hexgrad__Kokoro-82M.md +1 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_search/direction_-1_filter_not-for-all-audiences_limit_100_pipeline_tag_text-to-image_sort_downloads.json +117 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_search/direction_-1_limit_100_pipeline_tag_text-to-image_search_uncensored_sort_downloads.json +58 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_search/direction_-1_limit_100_pipeline_tag_text-to-speech_sort_downloads.json +33 -0
- genmodelfit-0.1.0/tests/fixtures/update/hf_search/direction_-1_limit_100_pipeline_tag_text-to-speech_sort_trendingScore.json +42 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/3d_hunyuan3d_image_to_model.json +61 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/audio_ace_step_1_5_checkpoint.json +57 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/audio_stable_audio_example.json +58 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/image_z_image_turbo.json +89 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/image_z_image_turbo_int8.json +89 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/index.json +314 -0
- genmodelfit-0.1.0/tests/fixtures/update/templates/templates-wan2_1_infinitetalk_music.json +107 -0
- genmodelfit-0.1.0/tests/test_bench.py +1241 -0
- genmodelfit-0.1.0/tests/test_bench_rtx3070.py +92 -0
- genmodelfit-0.1.0/tests/test_cli_casual.py +239 -0
- genmodelfit-0.1.0/tests/test_cli_json.py +538 -0
- genmodelfit-0.1.0/tests/test_core.py +131 -0
- genmodelfit-0.1.0/tests/test_embedding.py +298 -0
- genmodelfit-0.1.0/tests/test_estimate.py +634 -0
- genmodelfit-0.1.0/tests/test_families.py +13 -0
- genmodelfit-0.1.0/tests/test_gate.py +491 -0
- genmodelfit-0.1.0/tests/test_gate_real.py +139 -0
- genmodelfit-0.1.0/tests/test_groups.py +574 -0
- genmodelfit-0.1.0/tests/test_hardware.py +867 -0
- genmodelfit-0.1.0/tests/test_invariants.py +146 -0
- genmodelfit-0.1.0/tests/test_licenses.py +201 -0
- genmodelfit-0.1.0/tests/test_privacy.py +116 -0
- genmodelfit-0.1.0/tests/test_privacy_pc.py +208 -0
- genmodelfit-0.1.0/tests/test_release.py +509 -0
- genmodelfit-0.1.0/tests/test_review_14.py +363 -0
- genmodelfit-0.1.0/tests/test_review_fixes.py +567 -0
- genmodelfit-0.1.0/tests/test_status.py +176 -0
- genmodelfit-0.1.0/tests/test_table.py +234 -0
- genmodelfit-0.1.0/tests/test_update.py +502 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
変更の記録。書き方は Keep a Changelog にならう。
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.0] - 2026-10-20
|
|
11
|
+
|
|
12
|
+
First public release. / 最初の公開版。
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Hardware detection (`genmodelfit system`, `gmf.system()`): NVIDIA GPUs via `nvidia-smi`, RAM, free disk;
|
|
17
|
+
`--vram` / `--ram` to judge another PC. Other PCs are judged as CPU-only.
|
|
18
|
+
- Bundled model list (`db.json`): 323 entries (image, video, music, sound effects, TTS, 3D) built from the official
|
|
19
|
+
ComfyUI workflow templates and the Hugging Face Hub API, folded into 204 models. Hugging Face models need at least
|
|
20
|
+
10,000 all-time downloads (1,000 for trending ones), like llmfit.
|
|
21
|
+
- Memory estimates per component and stage, with swapping in turn, offload to RAM and CPU run modes; every estimate
|
|
22
|
+
says whether it is `measured` or `estimated`. Calibration on real runs (`python -m genmodelfit.calibrate`,
|
|
23
|
+
`docs/accuracy.md`).
|
|
24
|
+
- Fit levels by memory utilization (Perfect ≤ 60 %, Good ≤ 85 %, Marginal ≤ 98 %, Too tight), like llmfit.
|
|
25
|
+
- `recommend`, `fit`, `search`, `types`, `info` with a readable table and `--json` for apps (`docs/schema.md`):
|
|
26
|
+
one row per model (same weights family and size), best precision that fits, score (0–100), per-type sections,
|
|
27
|
+
filters by type, use (`--task`), license, fit level and content.
|
|
28
|
+
- Auto-recommendation gate (`genmodelfit gate`, `auto` / `held_reasons`): license allowlist traced to the upstream,
|
|
29
|
+
gating, official workflow without custom nodes, ComfyUI version, anonymous HEAD within 30 days, sha256, known size,
|
|
30
|
+
content `sfw`.
|
|
31
|
+
- Content marks: uncensored models are kept in the list with evidence but hidden by default (`content="sfw"`);
|
|
32
|
+
models aimed at sexual content involving minors are excluded.
|
|
33
|
+
- `genmodelfit update` (rebuild from upstream, `--heads-only`) and `update --from-release` (signed list from the
|
|
34
|
+
`data-latest` release, Ed25519, rollback protection).
|
|
35
|
+
- `genmodelfit bench`: measure peak VRAM / RAM / time on a running ComfyUI and contribute measurements
|
|
36
|
+
(`CONTRIBUTING.md`).
|
|
37
|
+
- Python API: `gmf.recommend()`, `gmf.search()`, `gmf.info()`, `gmf.system()`; library functions never print.
|
|
38
|
+
- Data freshness: `gmf.data_status()` (`DataStatus`: source, HEAD check dates, `expired`, `expires_at`,
|
|
39
|
+
`auto_count`) and the Data lines of `genmodelfit system` / `update` (`database.status` in `system --json`).
|
|
40
|
+
It uses the gate's own check, so `expired` tells apps when auto-recommendations have dropped.
|
|
41
|
+
- Type information (`py.typed`), Python 3.10–3.13 on Windows and Linux.
|
|
42
|
+
- Privacy: read-only commands and the Python API never touch the network; HTTP sends a fixed User-Agent and never
|
|
43
|
+
attaches `~/.netrc` credentials. No telemetry (README "Privacy").
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- License: MPL-2.0 for the code and the bundled data (was MIT before the first release).
|
|
48
|
+
Attribution for the upstream data is in `THIRD_PARTY_NOTICES`.
|
|
49
|
+
|
|
50
|
+
[Unreleased]: https://github.com/laxshmate/genmodelfit/compare/v0.1.0...HEAD
|
|
51
|
+
[0.1.0]: https://github.com/laxshmate/genmodelfit/releases/tag/v0.1.0
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# 実測を送る / Contributing measurements
|
|
2
|
+
|
|
3
|
+
genmodelfit の見積もりは、実際の PC で測った値(実測)があるとそれを優先します。いろいろな GPU の実測が
|
|
4
|
+
集まるほど、見積もりが正確になります。`genmodelfit bench` で測った結果を Pull Request で送ってください。
|
|
5
|
+
|
|
6
|
+
**English summary:** Run `genmodelfit bench <template> --url http://127.0.0.1:<port>` against your own ComfyUI,
|
|
7
|
+
check the JSON it writes, then open a pull request that adds the record to
|
|
8
|
+
`src/genmodelfit/data/measurements.json`. Required fields: `model_id`, `gpu_name`, `gpu_vram_gb`, `peak_vram_gb`,
|
|
9
|
+
`settings`, `seconds`, `driver`, `comfyui_version`, `offload`, `outcome`, `standard`, `source`, `date`. Do not include
|
|
10
|
+
paths, user names, host names or prompts. One model per PR is easiest to review. Out-of-memory runs are welcome too,
|
|
11
|
+
but they must keep `outcome: "oom"` (bench prints them and does not save them unless you pass `--save-failed` or
|
|
12
|
+
`--output`).
|
|
13
|
+
|
|
14
|
+
**License of contributions:** genmodelfit (code and bundled data) is under MPL-2.0. By opening a pull request you
|
|
15
|
+
agree that your contribution (code, measurements or other data) is licensed under MPL-2.0 like the rest of the
|
|
16
|
+
project. There is no CLA.
|
|
17
|
+
|
|
18
|
+
## 1. 測る
|
|
19
|
+
|
|
20
|
+
1. ComfyUI を起動します(ふだん使っているもので構いません)。**ほかの生成が動いていないとき**に測ってください。
|
|
21
|
+
bench はキューに仕事があると測りません(開始前と、送る直前の 2 回見ます)。GPU の使用率(約 2 秒の平均)が
|
|
22
|
+
30% 以上のときも止まります。`nvidia-smi` が無い・ComfyUI が別の PC・同じ名前の GPU が複数あってどれか
|
|
23
|
+
分からない、のように GPU の空きを確かめられないときも、黙って進まずに止まります(`--force` で測れます)
|
|
24
|
+
2. テンプレートが使うモデルのファイルを ComfyUI の `models` フォルダに置きます。足りないときは bench が
|
|
25
|
+
どのファイルが無いかを表示します
|
|
26
|
+
3. 測ります
|
|
27
|
+
|
|
28
|
+
```powershell
|
|
29
|
+
pip install genmodelfit
|
|
30
|
+
genmodelfit bench image_z_image_turbo_int8 --url http://127.0.0.1:8188 --resolution 768x768 --steps 6
|
|
31
|
+
genmodelfit bench text_to_video_wan --url http://127.0.0.1:8188 --resolution 512x512 --frames 49 --steps 20
|
|
32
|
+
genmodelfit bench audio_ace_step_1_5_checkpoint --url http://127.0.0.1:8188 --length 20 --steps 8
|
|
33
|
+
genmodelfit bench 3d_hunyuan3d_image_to_model --url http://127.0.0.1:8188 --steps 15
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`--url` は必ず指定します(既定の URL は持ちません。間違えてほかの ComfyUI に送らないため)。
|
|
37
|
+
|
|
38
|
+
- `<template>` は ComfyUI 公式テンプレートの名前です(`genmodelfit info <名前>` で一覧の ID を確かめられます)。
|
|
39
|
+
ワークフローは ComfyUI が持つテンプレート、無ければ GitHub の公式テンプレートから作ります。
|
|
40
|
+
自分のワークフローで測るときは、ComfyUI の「API 形式で書き出し」で保存した JSON を `--workflow` で渡します
|
|
41
|
+
- 設定は `--resolution 幅x高さ`(または `--width` `--height`)、`--frames`、`--length 秒`(音声)、`--steps` で変えます。
|
|
42
|
+
ほかの入力は `--set 入力の名前=値` で変えられます(同じ名前の入力すべてが変わります)。
|
|
43
|
+
`--set` で大きさ・長さ・ステップ数・seed 以外を変えた結果と、`--workflow` の結果は「標準でない」
|
|
44
|
+
(`standard: false`)として記録され、見積もりには使われません。`--set` の値は、数値だけを `note` に残します
|
|
45
|
+
(文字列はプロンプトのことがあるので、名前だけを残します)
|
|
46
|
+
- 既存の実測(`src/genmodelfit/data/measurements.json`)と同じ設定で測ると比べやすくなります
|
|
47
|
+
- 既定では `/free` を送りません(ほかの人が読み込んだモデルを外さないため)。読み込み済みのモデルがあると、
|
|
48
|
+
その分が結果に混ざることがあるので、bench は注意を出し、`note` に開始前の量を残します。
|
|
49
|
+
**自分だけが使う ComfyUI なら `--free` を付けてください**(モデルを外し、前の結果のキャッシュも消してから、
|
|
50
|
+
読み込みから測ります)
|
|
51
|
+
- `--free` を付けずに前回と同じ内容を送ると、ComfyUI が前の結果を返して何も実行しないので、bench は測れなかったと
|
|
52
|
+
表示します。一部のノードだけが前の結果を使ったときは、その分のメモリを測れていないので「標準でない」になります
|
|
53
|
+
- 測っている間に ComfyUI でほかの仕事が動いた、送ってから実行が始まるまで 10 秒以上かかった、というときも
|
|
54
|
+
「標準でない」になります
|
|
55
|
+
- 時間切れ(`--timeout 秒`、既定 1800)や Ctrl+C のときは、自分のプロンプトだけを取り消します
|
|
56
|
+
(実行中なら prompt_id を付けて中断し、待っている間ならキューから消します。ほかの人の仕事は止めません)
|
|
57
|
+
- 入力の画像が要るテンプレート(画像から 3D など)は、公式テンプレートの画像を ComfyUI にアップロードします
|
|
58
|
+
(上書きはしません。同じ名前の別の画像があれば ComfyUI が別の名前を付けます)
|
|
59
|
+
- 保存ノードの出力は ComfyUI の output フォルダの `genmodelfit_bench/` に入ります。要らなければ消してください
|
|
60
|
+
|
|
61
|
+
### 何を測っているか
|
|
62
|
+
|
|
63
|
+
| 項目 | 測り方 |
|
|
64
|
+
|---|---|
|
|
65
|
+
| `peak_vram_gb` | 生成中に `/system_stats` を 0.2 秒ごとに読み、torch が確保した量(`torch_vram_total`)の最大値。ComfyUI のプロセスの分で、CUDA の文脈(約 0.3〜0.5 GB)は含みません |
|
|
66
|
+
| `note` の「GPU 全体の増分」 | `nvidia-smi` の使用量の最大値から開始前の値を引いたもの。ほかのアプリの増減も入ります |
|
|
67
|
+
| `peak_ram_gb` | ポートで待ち受けている ComfyUI のプロセス(と子プロセス)の常駐メモリの最大値。コマンドラインに `main.py` か `comfy` を含むプロセスだけを数えます。ComfyUI が別の PC のとき・プロセスを特定できないときは空です |
|
|
68
|
+
| `seconds` | ワークフローを送ってから終わるまで(モデルの読み込みを含む)。ComfyUI が数えた実行時間は `note` に入ります |
|
|
69
|
+
| `offload` | ComfyUI のログから読みます: `dynamic`(動的 VRAM)/ `partial`(一部だけ GPU に載せた)/ `lowvram`(`--lowvram` などの起動オプション)/ `none`(全部載った)/ `oom`(メモリ不足で失敗)。分からなければ空 |
|
|
70
|
+
| `gpu_vram_gb` | `/system_stats` の VRAM の総量を GiB で、小数 2 桁まで丸めた値(公称 8 GB の GPU なら 8.0 前後)。同梱の古い行は公称の値(`16` など)です |
|
|
71
|
+
| `outcome` | `ok`(最後まで動いた)/ `oom`(メモリ不足で失敗)/ `error`(ほかの理由で失敗) |
|
|
72
|
+
| `standard` | 公式テンプレートのまま(大きさ・長さ・ステップ数・seed だけを変えた)で、ほかの仕事が混ざらず、全部のノードを実行したか |
|
|
73
|
+
|
|
74
|
+
メモリ不足(OOM)のデータも歓迎します(「この GPU では動かない」という大事なデータです)。ただし必ず
|
|
75
|
+
`outcome: "oom"` のまま送ってください。bench は失敗した結果を表示するだけで、キャッシュには保存しません
|
|
76
|
+
(キャッシュの実測は、その PC の見積もりにすぐ使われるため)。保存するときは `--save-failed`(キャッシュへ)か
|
|
77
|
+
`--output パス` を付けます。「標準でない」結果も同じで、`--save-nonstandard` か `--output` で保存できます。
|
|
78
|
+
見積もりは `outcome` が `ok` で `standard` が `true` の実測だけを使います。
|
|
79
|
+
|
|
80
|
+
## 2. 確かめる
|
|
81
|
+
|
|
82
|
+
bench は、最後まで動いた標準の結果を `<キャッシュ>/measurements/<モデル>_<GPU>_<日時>.json` に保存し、
|
|
83
|
+
保存先を表示します(`--output` で場所を変えられます)。キャッシュに置いた実測は、その PC の `genmodelfit` の見積もりにすぐ使われます。
|
|
84
|
+
|
|
85
|
+
ファイルを開いて、次を確かめてください。
|
|
86
|
+
|
|
87
|
+
- **個人の情報が入っていないこと**: フォルダのパス、ユーザー名、PC の名前、プロンプトの文を入れないでください。
|
|
88
|
+
bench はこれらを書きませんが、`--source` や `--note` に自分で書いたものは確かめてください
|
|
89
|
+
- `gpu_name` と `driver` が自分の PC と合っていること
|
|
90
|
+
- `settings` が測りたかった設定になっていること
|
|
91
|
+
|
|
92
|
+
## 3. 送る
|
|
93
|
+
|
|
94
|
+
1. このリポジトリをフォークして、ブランチを作ります
|
|
95
|
+
2. 保存された JSON の `measurements` の中身を、`src/genmodelfit/data/measurements.json` の `measurements` の
|
|
96
|
+
最後に足します(書き方は既存の行にそろえてください)
|
|
97
|
+
3. `source` に、測った環境が分かる短い説明を書きます(例: `"genmodelfit bench, RTX 4060 8GB, ComfyUI portable"`)。
|
|
98
|
+
個人名やメールアドレスは不要です
|
|
99
|
+
4. `pytest -q` が通ることを確かめて、Pull Request を作ります。説明に、PC の構成(GPU・メモリ・OS)と、
|
|
100
|
+
ComfyUI の起動オプション(`--lowvram` など、変えたものだけ)を書いてください
|
|
101
|
+
|
|
102
|
+
### 必要な項目
|
|
103
|
+
|
|
104
|
+
| 項目 | 必須 | 例 |
|
|
105
|
+
|---|---|---|
|
|
106
|
+
| `model_id` | ○ | `image_z_image_turbo_int8`(一覧の ID) |
|
|
107
|
+
| `gpu_name`, `gpu_vram_gb` | ○ | `NVIDIA GeForce RTX 3070`, `8.0` |
|
|
108
|
+
| `peak_vram_gb` | ○ | `5.43` |
|
|
109
|
+
| `settings` | ○ | `{"width": 768, "height": 768, "steps": 6}` |
|
|
110
|
+
| `seconds` | ○ | `41.2` |
|
|
111
|
+
| `driver`, `comfyui_version` | ○ | `566.03`, `0.40.0` |
|
|
112
|
+
| `offload` | ○ | `dynamic` |
|
|
113
|
+
| `outcome`, `standard` | ○ | `ok`, `true`(OOM なら `oom` のまま送る) |
|
|
114
|
+
| `source`, `date` | ○ | 上の例、`2026-10-20` |
|
|
115
|
+
| `peak_ram_gb`, `note` | | bench が書いたものをそのまま |
|
|
116
|
+
|
|
117
|
+
形の正本は `src/genmodelfit/models.py` の `Measurement` で、説明は [docs/schema.md](docs/schema.md) にあります。
|
|
118
|
+
|
|
119
|
+
## そのほかの変更
|
|
120
|
+
|
|
121
|
+
コードの変更も歓迎します。依存を足すときは MIT / Apache-2.0 / BSD のものだけにしてください
|
|
122
|
+
(このツールを組み込むアプリがソースを公開せずに配布するため)。ComfyUI のコード(GPL-3.0)は import せず、
|
|
123
|
+
HTTP だけで話します。新しい `.py` ファイルの先頭には、ほかのファイルと同じ MPL-2.0 の表示(3 行)を入れてください。
|
|
124
|
+
|
|
125
|
+
## ライセンス / License
|
|
126
|
+
|
|
127
|
+
genmodelfit のコードと同梱のデータ(db.json・実測・係数)は [MPL-2.0](https://github.com/laxshmate/genmodelfit/blob/main/LICENSE) です。
|
|
128
|
+
送っていただく修正・実測・データも、**MPL-2.0 で出していただいたものとして受け入れます**
|
|
129
|
+
(Pull Request を出すことで、これに同意したことになります)。CLA(著作権の譲渡や追加の許諾の書類)はありません。
|
|
130
|
+
自分で書いたもの、または MPL-2.0 で出してよいものだけを送ってください。
|
|
131
|
+
|
|
132
|
+
Contributions are accepted under MPL-2.0 (inbound = outbound). No CLA is required. Only submit work you wrote
|
|
133
|
+
yourself or are allowed to release under MPL-2.0.
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
Mozilla Public License Version 2.0
|
|
2
|
+
==================================
|
|
3
|
+
|
|
4
|
+
1. Definitions
|
|
5
|
+
--------------
|
|
6
|
+
|
|
7
|
+
1.1. "Contributor"
|
|
8
|
+
means each individual or legal entity that creates, contributes to
|
|
9
|
+
the creation of, or owns Covered Software.
|
|
10
|
+
|
|
11
|
+
1.2. "Contributor Version"
|
|
12
|
+
means the combination of the Contributions of others (if any) used
|
|
13
|
+
by a Contributor and that particular Contributor's Contribution.
|
|
14
|
+
|
|
15
|
+
1.3. "Contribution"
|
|
16
|
+
means Covered Software of a particular Contributor.
|
|
17
|
+
|
|
18
|
+
1.4. "Covered Software"
|
|
19
|
+
means Source Code Form to which the initial Contributor has attached
|
|
20
|
+
the notice in Exhibit A, the Executable Form of such Source Code
|
|
21
|
+
Form, and Modifications of such Source Code Form, in each case
|
|
22
|
+
including portions thereof.
|
|
23
|
+
|
|
24
|
+
1.5. "Incompatible With Secondary Licenses"
|
|
25
|
+
means
|
|
26
|
+
|
|
27
|
+
(a) that the initial Contributor has attached the notice described
|
|
28
|
+
in Exhibit B to the Covered Software; or
|
|
29
|
+
|
|
30
|
+
(b) that the Covered Software was made available under the terms of
|
|
31
|
+
version 1.1 or earlier of the License, but not also under the
|
|
32
|
+
terms of a Secondary License.
|
|
33
|
+
|
|
34
|
+
1.6. "Executable Form"
|
|
35
|
+
means any form of the work other than Source Code Form.
|
|
36
|
+
|
|
37
|
+
1.7. "Larger Work"
|
|
38
|
+
means a work that combines Covered Software with other material, in
|
|
39
|
+
a separate file or files, that is not Covered Software.
|
|
40
|
+
|
|
41
|
+
1.8. "License"
|
|
42
|
+
means this document.
|
|
43
|
+
|
|
44
|
+
1.9. "Licensable"
|
|
45
|
+
means having the right to grant, to the maximum extent possible,
|
|
46
|
+
whether at the time of the initial grant or subsequently, any and
|
|
47
|
+
all of the rights conveyed by this License.
|
|
48
|
+
|
|
49
|
+
1.10. "Modifications"
|
|
50
|
+
means any of the following:
|
|
51
|
+
|
|
52
|
+
(a) any file in Source Code Form that results from an addition to,
|
|
53
|
+
deletion from, or modification of the contents of Covered
|
|
54
|
+
Software; or
|
|
55
|
+
|
|
56
|
+
(b) any new file in Source Code Form that contains any Covered
|
|
57
|
+
Software.
|
|
58
|
+
|
|
59
|
+
1.11. "Patent Claims" of a Contributor
|
|
60
|
+
means any patent claim(s), including without limitation, method,
|
|
61
|
+
process, and apparatus claims, in any patent Licensable by such
|
|
62
|
+
Contributor that would be infringed, but for the grant of the
|
|
63
|
+
License, by the making, using, selling, offering for sale, having
|
|
64
|
+
made, import, or transfer of either its Contributions or its
|
|
65
|
+
Contributor Version.
|
|
66
|
+
|
|
67
|
+
1.12. "Secondary License"
|
|
68
|
+
means either the GNU General Public License, Version 2.0, the GNU
|
|
69
|
+
Lesser General Public License, Version 2.1, the GNU Affero General
|
|
70
|
+
Public License, Version 3.0, or any later versions of those
|
|
71
|
+
licenses.
|
|
72
|
+
|
|
73
|
+
1.13. "Source Code Form"
|
|
74
|
+
means the form of the work preferred for making modifications.
|
|
75
|
+
|
|
76
|
+
1.14. "You" (or "Your")
|
|
77
|
+
means an individual or a legal entity exercising rights under this
|
|
78
|
+
License. For legal entities, "You" includes any entity that
|
|
79
|
+
controls, is controlled by, or is under common control with You. For
|
|
80
|
+
purposes of this definition, "control" means (a) the power, direct
|
|
81
|
+
or indirect, to cause the direction or management of such entity,
|
|
82
|
+
whether by contract or otherwise, or (b) ownership of more than
|
|
83
|
+
fifty percent (50%) of the outstanding shares or beneficial
|
|
84
|
+
ownership of such entity.
|
|
85
|
+
|
|
86
|
+
2. License Grants and Conditions
|
|
87
|
+
--------------------------------
|
|
88
|
+
|
|
89
|
+
2.1. Grants
|
|
90
|
+
|
|
91
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
92
|
+
non-exclusive license:
|
|
93
|
+
|
|
94
|
+
(a) under intellectual property rights (other than patent or trademark)
|
|
95
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
96
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
97
|
+
Contributions, either on an unmodified basis, with Modifications, or
|
|
98
|
+
as part of a Larger Work; and
|
|
99
|
+
|
|
100
|
+
(b) under Patent Claims of such Contributor to make, use, sell, offer
|
|
101
|
+
for sale, have made, import, and otherwise transfer either its
|
|
102
|
+
Contributions or its Contributor Version.
|
|
103
|
+
|
|
104
|
+
2.2. Effective Date
|
|
105
|
+
|
|
106
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
|
107
|
+
become effective for each Contribution on the date the Contributor first
|
|
108
|
+
distributes such Contribution.
|
|
109
|
+
|
|
110
|
+
2.3. Limitations on Grant Scope
|
|
111
|
+
|
|
112
|
+
The licenses granted in this Section 2 are the only rights granted under
|
|
113
|
+
this License. No additional rights or licenses will be implied from the
|
|
114
|
+
distribution or licensing of Covered Software under this License.
|
|
115
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
|
116
|
+
Contributor:
|
|
117
|
+
|
|
118
|
+
(a) for any code that a Contributor has removed from Covered Software;
|
|
119
|
+
or
|
|
120
|
+
|
|
121
|
+
(b) for infringements caused by: (i) Your and any other third party's
|
|
122
|
+
modifications of Covered Software, or (ii) the combination of its
|
|
123
|
+
Contributions with other software (except as part of its Contributor
|
|
124
|
+
Version); or
|
|
125
|
+
|
|
126
|
+
(c) under Patent Claims infringed by Covered Software in the absence of
|
|
127
|
+
its Contributions.
|
|
128
|
+
|
|
129
|
+
This License does not grant any rights in the trademarks, service marks,
|
|
130
|
+
or logos of any Contributor (except as may be necessary to comply with
|
|
131
|
+
the notice requirements in Section 3.4).
|
|
132
|
+
|
|
133
|
+
2.4. Subsequent Licenses
|
|
134
|
+
|
|
135
|
+
No Contributor makes additional grants as a result of Your choice to
|
|
136
|
+
distribute the Covered Software under a subsequent version of this
|
|
137
|
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
|
138
|
+
permitted under the terms of Section 3.3).
|
|
139
|
+
|
|
140
|
+
2.5. Representation
|
|
141
|
+
|
|
142
|
+
Each Contributor represents that the Contributor believes its
|
|
143
|
+
Contributions are its original creation(s) or it has sufficient rights
|
|
144
|
+
to grant the rights to its Contributions conveyed by this License.
|
|
145
|
+
|
|
146
|
+
2.6. Fair Use
|
|
147
|
+
|
|
148
|
+
This License is not intended to limit any rights You have under
|
|
149
|
+
applicable copyright doctrines of fair use, fair dealing, or other
|
|
150
|
+
equivalents.
|
|
151
|
+
|
|
152
|
+
2.7. Conditions
|
|
153
|
+
|
|
154
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
|
|
155
|
+
in Section 2.1.
|
|
156
|
+
|
|
157
|
+
3. Responsibilities
|
|
158
|
+
-------------------
|
|
159
|
+
|
|
160
|
+
3.1. Distribution of Source Form
|
|
161
|
+
|
|
162
|
+
All distribution of Covered Software in Source Code Form, including any
|
|
163
|
+
Modifications that You create or to which You contribute, must be under
|
|
164
|
+
the terms of this License. You must inform recipients that the Source
|
|
165
|
+
Code Form of the Covered Software is governed by the terms of this
|
|
166
|
+
License, and how they can obtain a copy of this License. You may not
|
|
167
|
+
attempt to alter or restrict the recipients' rights in the Source Code
|
|
168
|
+
Form.
|
|
169
|
+
|
|
170
|
+
3.2. Distribution of Executable Form
|
|
171
|
+
|
|
172
|
+
If You distribute Covered Software in Executable Form then:
|
|
173
|
+
|
|
174
|
+
(a) such Covered Software must also be made available in Source Code
|
|
175
|
+
Form, as described in Section 3.1, and You must inform recipients of
|
|
176
|
+
the Executable Form how they can obtain a copy of such Source Code
|
|
177
|
+
Form by reasonable means in a timely manner, at a charge no more
|
|
178
|
+
than the cost of distribution to the recipient; and
|
|
179
|
+
|
|
180
|
+
(b) You may distribute such Executable Form under the terms of this
|
|
181
|
+
License, or sublicense it under different terms, provided that the
|
|
182
|
+
license for the Executable Form does not attempt to limit or alter
|
|
183
|
+
the recipients' rights in the Source Code Form under this License.
|
|
184
|
+
|
|
185
|
+
3.3. Distribution of a Larger Work
|
|
186
|
+
|
|
187
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
|
188
|
+
provided that You also comply with the requirements of this License for
|
|
189
|
+
the Covered Software. If the Larger Work is a combination of Covered
|
|
190
|
+
Software with a work governed by one or more Secondary Licenses, and the
|
|
191
|
+
Covered Software is not Incompatible With Secondary Licenses, this
|
|
192
|
+
License permits You to additionally distribute such Covered Software
|
|
193
|
+
under the terms of such Secondary License(s), so that the recipient of
|
|
194
|
+
the Larger Work may, at their option, further distribute the Covered
|
|
195
|
+
Software under the terms of either this License or such Secondary
|
|
196
|
+
License(s).
|
|
197
|
+
|
|
198
|
+
3.4. Notices
|
|
199
|
+
|
|
200
|
+
You may not remove or alter the substance of any license notices
|
|
201
|
+
(including copyright notices, patent notices, disclaimers of warranty,
|
|
202
|
+
or limitations of liability) contained within the Source Code Form of
|
|
203
|
+
the Covered Software, except that You may alter any license notices to
|
|
204
|
+
the extent required to remedy known factual inaccuracies.
|
|
205
|
+
|
|
206
|
+
3.5. Application of Additional Terms
|
|
207
|
+
|
|
208
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
|
209
|
+
indemnity or liability obligations to one or more recipients of Covered
|
|
210
|
+
Software. However, You may do so only on Your own behalf, and not on
|
|
211
|
+
behalf of any Contributor. You must make it absolutely clear that any
|
|
212
|
+
such warranty, support, indemnity, or liability obligation is offered by
|
|
213
|
+
You alone, and You hereby agree to indemnify every Contributor for any
|
|
214
|
+
liability incurred by such Contributor as a result of warranty, support,
|
|
215
|
+
indemnity or liability terms You offer. You may include additional
|
|
216
|
+
disclaimers of warranty and limitations of liability specific to any
|
|
217
|
+
jurisdiction.
|
|
218
|
+
|
|
219
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
220
|
+
---------------------------------------------------
|
|
221
|
+
|
|
222
|
+
If it is impossible for You to comply with any of the terms of this
|
|
223
|
+
License with respect to some or all of the Covered Software due to
|
|
224
|
+
statute, judicial order, or regulation then You must: (a) comply with
|
|
225
|
+
the terms of this License to the maximum extent possible; and (b)
|
|
226
|
+
describe the limitations and the code they affect. Such description must
|
|
227
|
+
be placed in a text file included with all distributions of the Covered
|
|
228
|
+
Software under this License. Except to the extent prohibited by statute
|
|
229
|
+
or regulation, such description must be sufficiently detailed for a
|
|
230
|
+
recipient of ordinary skill to be able to understand it.
|
|
231
|
+
|
|
232
|
+
5. Termination
|
|
233
|
+
--------------
|
|
234
|
+
|
|
235
|
+
5.1. The rights granted under this License will terminate automatically
|
|
236
|
+
if You fail to comply with any of its terms. However, if You become
|
|
237
|
+
compliant, then the rights granted under this License from a particular
|
|
238
|
+
Contributor are reinstated (a) provisionally, unless and until such
|
|
239
|
+
Contributor explicitly and finally terminates Your grants, and (b) on an
|
|
240
|
+
ongoing basis, if such Contributor fails to notify You of the
|
|
241
|
+
non-compliance by some reasonable means prior to 60 days after You have
|
|
242
|
+
come back into compliance. Moreover, Your grants from a particular
|
|
243
|
+
Contributor are reinstated on an ongoing basis if such Contributor
|
|
244
|
+
notifies You of the non-compliance by some reasonable means, this is the
|
|
245
|
+
first time You have received notice of non-compliance with this License
|
|
246
|
+
from such Contributor, and You become compliant prior to 30 days after
|
|
247
|
+
Your receipt of the notice.
|
|
248
|
+
|
|
249
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
|
250
|
+
infringement claim (excluding declaratory judgment actions,
|
|
251
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
|
252
|
+
directly or indirectly infringes any patent, then the rights granted to
|
|
253
|
+
You by any and all Contributors for the Covered Software under Section
|
|
254
|
+
2.1 of this License shall terminate.
|
|
255
|
+
|
|
256
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
|
|
257
|
+
end user license agreements (excluding distributors and resellers) which
|
|
258
|
+
have been validly granted by You or Your distributors under this License
|
|
259
|
+
prior to termination shall survive termination.
|
|
260
|
+
|
|
261
|
+
************************************************************************
|
|
262
|
+
* *
|
|
263
|
+
* 6. Disclaimer of Warranty *
|
|
264
|
+
* ------------------------- *
|
|
265
|
+
* *
|
|
266
|
+
* Covered Software is provided under this License on an "as is" *
|
|
267
|
+
* basis, without warranty of any kind, either expressed, implied, or *
|
|
268
|
+
* statutory, including, without limitation, warranties that the *
|
|
269
|
+
* Covered Software is free of defects, merchantable, fit for a *
|
|
270
|
+
* particular purpose or non-infringing. The entire risk as to the *
|
|
271
|
+
* quality and performance of the Covered Software is with You. *
|
|
272
|
+
* Should any Covered Software prove defective in any respect, You *
|
|
273
|
+
* (not any Contributor) assume the cost of any necessary servicing, *
|
|
274
|
+
* repair, or correction. This disclaimer of warranty constitutes an *
|
|
275
|
+
* essential part of this License. No use of any Covered Software is *
|
|
276
|
+
* authorized under this License except under this disclaimer. *
|
|
277
|
+
* *
|
|
278
|
+
************************************************************************
|
|
279
|
+
|
|
280
|
+
************************************************************************
|
|
281
|
+
* *
|
|
282
|
+
* 7. Limitation of Liability *
|
|
283
|
+
* -------------------------- *
|
|
284
|
+
* *
|
|
285
|
+
* Under no circumstances and under no legal theory, whether tort *
|
|
286
|
+
* (including negligence), contract, or otherwise, shall any *
|
|
287
|
+
* Contributor, or anyone who distributes Covered Software as *
|
|
288
|
+
* permitted above, be liable to You for any direct, indirect, *
|
|
289
|
+
* special, incidental, or consequential damages of any character *
|
|
290
|
+
* including, without limitation, damages for lost profits, loss of *
|
|
291
|
+
* goodwill, work stoppage, computer failure or malfunction, or any *
|
|
292
|
+
* and all other commercial damages or losses, even if such party *
|
|
293
|
+
* shall have been informed of the possibility of such damages. This *
|
|
294
|
+
* limitation of liability shall not apply to liability for death or *
|
|
295
|
+
* personal injury resulting from such party's negligence to the *
|
|
296
|
+
* extent applicable law prohibits such limitation. Some *
|
|
297
|
+
* jurisdictions do not allow the exclusion or limitation of *
|
|
298
|
+
* incidental or consequential damages, so this exclusion and *
|
|
299
|
+
* limitation may not apply to You. *
|
|
300
|
+
* *
|
|
301
|
+
************************************************************************
|
|
302
|
+
|
|
303
|
+
8. Litigation
|
|
304
|
+
-------------
|
|
305
|
+
|
|
306
|
+
Any litigation relating to this License may be brought only in the
|
|
307
|
+
courts of a jurisdiction where the defendant maintains its principal
|
|
308
|
+
place of business and such litigation shall be governed by laws of that
|
|
309
|
+
jurisdiction, without reference to its conflict-of-law provisions.
|
|
310
|
+
Nothing in this Section shall prevent a party's ability to bring
|
|
311
|
+
cross-claims or counter-claims.
|
|
312
|
+
|
|
313
|
+
9. Miscellaneous
|
|
314
|
+
----------------
|
|
315
|
+
|
|
316
|
+
This License represents the complete agreement concerning the subject
|
|
317
|
+
matter hereof. If any provision of this License is held to be
|
|
318
|
+
unenforceable, such provision shall be reformed only to the extent
|
|
319
|
+
necessary to make it enforceable. Any law or regulation which provides
|
|
320
|
+
that the language of a contract shall be construed against the drafter
|
|
321
|
+
shall not be used to construe this License against a Contributor.
|
|
322
|
+
|
|
323
|
+
10. Versions of the License
|
|
324
|
+
---------------------------
|
|
325
|
+
|
|
326
|
+
10.1. New Versions
|
|
327
|
+
|
|
328
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
|
329
|
+
10.3, no one other than the license steward has the right to modify or
|
|
330
|
+
publish new versions of this License. Each version will be given a
|
|
331
|
+
distinguishing version number.
|
|
332
|
+
|
|
333
|
+
10.2. Effect of New Versions
|
|
334
|
+
|
|
335
|
+
You may distribute the Covered Software under the terms of the version
|
|
336
|
+
of the License under which You originally received the Covered Software,
|
|
337
|
+
or under the terms of any subsequent version published by the license
|
|
338
|
+
steward.
|
|
339
|
+
|
|
340
|
+
10.3. Modified Versions
|
|
341
|
+
|
|
342
|
+
If you create software not governed by this License, and you want to
|
|
343
|
+
create a new license for such software, you may create and use a
|
|
344
|
+
modified version of this License if you rename the license and remove
|
|
345
|
+
any references to the name of the license steward (except to note that
|
|
346
|
+
such modified license differs from this License).
|
|
347
|
+
|
|
348
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
|
349
|
+
Licenses
|
|
350
|
+
|
|
351
|
+
If You choose to distribute Source Code Form that is Incompatible With
|
|
352
|
+
Secondary Licenses under the terms of this version of the License, the
|
|
353
|
+
notice described in Exhibit B of this License must be attached.
|
|
354
|
+
|
|
355
|
+
Exhibit A - Source Code Form License Notice
|
|
356
|
+
-------------------------------------------
|
|
357
|
+
|
|
358
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
359
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
360
|
+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
361
|
+
|
|
362
|
+
If it is not possible or desirable to put the notice in a particular
|
|
363
|
+
file, then You may include the notice in a location (such as a LICENSE
|
|
364
|
+
file in a relevant directory) where a recipient would be likely to look
|
|
365
|
+
for such a notice.
|
|
366
|
+
|
|
367
|
+
You may add additional accurate notices of copyright ownership.
|
|
368
|
+
|
|
369
|
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
|
370
|
+
---------------------------------------------------------
|
|
371
|
+
|
|
372
|
+
This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
373
|
+
defined by the Mozilla Public License, v. 2.0.
|