8000 如何在使用argparse的同时使用coredumpy? · Issue #80 · gaogaotiantian/coredumpy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
如何在使用argparse的同时使用coredumpy? #80
Closed
@caixd-220529

Description

@caixd-220529

您好,原本,我的python代码需要通过以下bash脚本运行。

export PYTHONPATH=./
python ./src/run_experiment.py --config_path configs/assignments/examples/llama31_8b_instruct/instance/db_bench/instance/group_self_consistency_first50.yaml

但是,当我想在项目中加入coredumpy中后,我发现coredumpy无法识别参数config_path

coredumpy run ./src/run_experiment.py --config_path configs/assignments/examples/llama31_8b_instruct/instance/db_bench/instance/group_self_consistency_first50.yaml
usage: coredumpy [-h] {run,load,peek,host} ...
coredumpy: error: unrecognized arguments: --config_path configs/assignments/examples/llama31_8b_instruct/instance/db_bench/instance/group_self_consistency_first50.yaml

另,我已经在代码中通过coredumpy.patch_except(path_config.coredumpy_output_dir)指定了coredumpy的输出文件夹,但是直接使用python运行文件,抛出异常时似乎不会生成dump。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0