Yunhao Zhou

Results comments of Yunhao Zhou

> You can put any other value for the target like 3.0 and it will still work. The target is used to compute the metrics and create evolutionary pressure. It...

> > How many generations or iterations you used to reach the result `2.634` ? > > 800 Thank you.

> [@yyh-sjtu](https://github.com/yyh-sjtu) fyi, someone managed to find a new SOTA of circle packing in about 450 iterations [here](https://github.com/codelion/openevolve/issues/156). I guess luck is also a factor (or maybe the recently fixed...

可以先绕开业务封装,直接打本机 `/api/chat` 做四组对照:原模型 / `9b-16k`,分别开关 thinking。`format` 要放在请求顶层,传 schema 对象。下面只依赖 Python 标准库: ```python import json import urllib.request import urllib.error schema = { "type": "object", "properties": { "category": {"type": "string", "enum": ["product",...

多轮历史可以保留。通常让 chosen / rejected 共享同一段历史,只在最后一个 assistant 回答上做偏好比较,比如这条就包含两轮对话: ```json { "messages": [ {"role": "user", "content": "先给我一个方案。"}, {"role": "assistant", "content": "第一轮已确认的方案。"}, {"role": "user", "content": "再补充具体步骤。"}, {"role": "assistant", "content": "第二轮更好的回答。"} ], "rejected_response": "第二轮较差的回答。"...

补充一下:`add_non_thinking_prefix` 控制是否给无思考正文补空的 `...`;这段前缀是否算 loss,由 `loss_scale` 决定。训练混合思考数据时可以显式写: ```bash --add_non_thinking_prefix true \ --loss_scale default+ignore_empty_think ``` 这样无思考样本的空 think 段不算 loss,有内容的思考段仍参与训练。它不会单独保证模型在推理时关闭思考,推理侧还要确认实际送入模型的 chat template / `enable_thinking` 设置。 版本也有区别:当前文档说明 **4.3.1 起混合思考模型默认追加 `ignore_empty_think`**;旧版需要手动指定,不能只看 `add_non_thinking_prefix=true` 就判断空段是否参与训练。见[参数说明](https://github.com/modelscope/ms-swift/blob/680df5c670d7e8add906ac49381d603869410612/docs/source/Instruction/Command-line-parameters.md#L124-L143)。

这份栈里 OOM 的位置在第二次 rollout 权重同步: ```text _move_full_model_to_vllm -> self.model.unmerge_adapter() -> orig_weight.data / dora_factor.view(-1, 1) - delta_weight ``` DoRA 这里需要临时的完整权重张量。可以先保持其他参数不变,只把原命令的这一项改掉,跑过至少两次 rollout: ```bash --use_dora false ``` 如果普通 LoRA 能过,就能把问题缩到 DoRA 的 merge/unmerge...

For the FPS follow-up: FPS controls the requested sampling rate, while FPS_MAX_FRAMES caps the resulting number of sampled frames. They can be used together; for a long video the cap...

建议先在训练前跑一次转换精度检查,确认 HF 和 MCore 加载同一份权重时已经对齐,再排训练参数: ```bash CUDA_VISIBLE_DEVICES=0 swift export \ --model ./Qwen3-VL-4B-Instruct \ --to_mcore true \ --torch_dtype bfloat16 \ --output_dir ./qwen3vl-convert-check \ --test_convert_precision true ``` 这个开关会对比转换前后的模型输出,当前实现也会为多模态模型构造图像样例,见[检查函数](https://github.com/modelscope/ms-swift/blob/680df5c670d7e8add906ac49381d603869410612/swift/megatron/utils/convert_utils.py#L198)。转换会同时占用 HF / MCore 模型的资源,单卡空间不够时按[导出说明](https://github.com/modelscope/ms-swift/blob/680df5c670d7e8add906ac49381d603869410612/docs/source/Megatron-SWIFT/Quick-start.md#L92-L107)使用多卡。...

两个脚本的解码参数还没对齐:PT 的 `temperature/top_p/top_k/repetition_penalty` 是 `None`,vLLM 是 `0/1/-1/1`。PT 这边可能还在用 checkpoint 自带的生成配置。 可以让两个 engine 共用同一个 RequestConfig: ```python from swift.infer_engine import RequestConfig config = RequestConfig( max_tokens=256, temperature=0, top_p=1, top_k=-1, repetition_penalty=1, ) pt_result =...