Why Do Results from MCP-Trained Models Differ Greatly Between generate_benchmarks.py and train.py
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- machine-learning, testing-qa
Hướng nghiên cứu
Bắt đầu bằng cách so sánh generate_benchmarks.py và train.py, tập trung vào cách mỗi tệp xử lý công cụ complete_task và xác định mức độ thành công của tác vụ. Theo dõi đường dẫn đánh giá của mô hình được huấn luyện bằng MCP và tái hiện sự khác biệt với cấu hình vLLM và LoRA được cung cấp. Hoàn thành có nghĩa là xác nhận liệu các tiêu chí hoàn thành có khác nhau hay không, đồng thời ghi lại hoặc sửa nguyên nhân của khoảng trống xác thực.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Why does a model trained via MCP show a significant discrepancy in results when tested using generate_benchmarks.py, compared to the outcomes from train.py?
A preliminary investigation indicates that the root cause may be related to the following logic: In generate_benchmarks.py, the model must call the complete_task function to be deemed as having finished a task. However, there is no such logic implemented in train.py. Is this the reason for the large result deviation?
generate_benchmarks.py
qwen3_4b_instruct = art.Model(
name="qwen3-4b-instruct",
project=server,
inference_model_name="qwen3-4b-instruct",
inference_base_url="http://localhost:8082/v1", #http://localhost:8082/v1
inference_api_key="dummy", # API key
inference_timeout=3600,
)
source /*****/miniconda3/bin/activate ART
BASE_MODEL_PATH="/*****/Qwen3-4B-Instruct-2507"
LORA_PATH="/*****/examples/mcp-rl/.art/mcp-agent-training/models/mcp-4b-001/checkpoints/0017"
CUDA_VISIBLE_DEVICES=2,3 python -m vllm.entrypoints.openai.api_server \
--model "$BASE_MODEL_PATH" \
--served-model-name "mcp-4b-001-finetuned" \
--enable-lora \
--lora-modules mcp-4b-001="$LORA_PATH" \
--host 0.0.0.0 \
--port 8082 \
--trust-remote-code \
--enable-auto-tool-choice \
--tool-call-parser hermes \
--max-model-len 16384 \
--tensor-parallel-size 2
In the generate_benchmarks.py
mcp-4b-001-finetuned = art.Model(
name="mcp-4b-001-finetuned",
project=server,
inference_model_name="mcp-4b-001-finetuned",
inference_base_url="http://localhost:8082/v1", #http://localhost:8082/v1
inference_api_key="dummy",
inference_timeout=3600)
While this method has a certain degree of effectiveness, there is still a significant gap between its current performance and the validation results obtained during training.
I would like to know: during the training process, is it also mandatory for the model to output the "complete task" tool to be considered a successful completion of the task? Because when I used your benchmark, the trained large model tended not to call the "complete task" tool to end the task, resulting in an evaluation success rate of 0.
- Ngôn ngữ chính
- Python
- Star
- 10.8k
- Fork
- 989
- Merge trung bình
- 11 giờ 38 phút
- Pull request đã merge (30 ngày)
- 104
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenPipe/ART
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
OpenPipe/ART#961 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
OpenPipe/ART#949 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
Maintainer thường phản hồi trong vòng 3 ngày
Issue tương tự
-
bug status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
prowler-cloud/prowler#12887 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: desktop platform: macos priority: p3 status: ready type: enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
use-agent-os/agent-os#3484 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
open-telemetry/opentelemetry-python-contrib#5113 · 2 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
external
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
langchain-ai/docs#6255 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày