feat(mine): agent 内存自适应 + 挖掘默认 all_a/十年窗 - #189
Merged
Merged
Conversation
Enable ~20GiB hosts to run fz mine agent on all_a × default_window without kernel OOM by auto pool-subproc isolation from measured free RAM and peak estimates. Align mining defaults to 10y/ashare floor 20160101 and all_a; wire agent pool_cache_dir, peak ordering, ResidualProjector; extend LLM reasoning_effort; fix forward_start data-lake alignment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
discovery/mem_budget.py,按可用内存与帧/库池峰值估算自动启用库池子进程(pool-prebuild),fz mine agent/team默认路径无需手写--pool-subproc;支持--no-pool-subproc逃生口。pool_cache_dir、池→切分→释放 raw 错峰、session 级ResidualProjector;CLI 装帧前建池。default_window默认 10 年 + A 股下限 20160101;mine agent/team/search等默认universe=all_a,--start/--end可省略。REASONING_EFFORT、forward_start 与数据湖最新日对齐、相关测试与文档。Test plan
pytest tests/discovery/test_mem_budget.py tests/cli/test_mining_cli.py tests/cli/test_pool_prebuild.py tests/agents/test_frame_diet.py(39 passed)fz mine agent --iterations 1(默认 all_a × default_window):自适应pool_subproc=True,池子进程完成 + 1 轮评估,exit=0,无 137;max RSS ≈ 22.65 GiBNotes
在 ~20–23 GiB 主机上,全 A × 十年窗仍接近物理上限;策略是自动降级(子进程/串行/spill)以保证不 OOM,而非固定墙钟。