Skip to content

Commit b6391bd

Browse files
committed
remove qwen agent producer
1 parent edcef9e commit b6391bd

File tree

4 files changed

+2
-282
lines changed

4 files changed

+2
-282
lines changed

applications/ColossalChat/coati/distributed/agent/qwen_math_agentic_producer.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

applications/ColossalChat/coati/distributed/agent/qwen_math_agentic_utils.py

Lines changed: 0 additions & 176 deletions
This file was deleted.

applications/ColossalChat/coati/distributed/launch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import ray
77
from coati.distributed.agent.agentic_producer import AgenticProducer
8-
from coati.distributed.agent.qwen_math_agentic_producer import QwenMathAgenticProducer
98
from coati.distributed.agent.tool_worker import ToolWorker
109

1110
from .consumer import SimpleConsumer
@@ -21,7 +20,6 @@
2120
}
2221
Producer_MAP = {"Simple": SimpleProducer, "Async": AsyncSimpleProducer}
2322
AGENTIC_PRODUCER_MAP = {
24-
"QwenMathAgent": QwenMathAgenticProducer,
2523
"Agentic": AgenticProducer,
2624
} # supported agentic producers
2725

applications/ColossalChat/rl_example.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"--agentic-type",
166166
type=str,
167167
default="Agentic",
168-
choices=["Agentic", "QwenMathAgent"],
168+
choices=["Agentic"],
169169
help="Agentic model type for agentic training.",
170170
)
171171
parser.add_argument(
@@ -418,19 +418,7 @@
418418
if "agentic" in args.backend:
419419
assert "vllm" in args.backend, "Agentic backend only supports async-agentic-vllm backends."
420420
generate_config["n"] = 1 # agentic producer use AsyncProducer which processes one request a time
421-
if args.agentic_type == "QwenMathAgent":
422-
agentic_config = {
423-
"agentic_producer": "QwenMathAgent",
424-
"model": args.model,
425-
"model_type": "transformers",
426-
"generate_cfg": {
427-
"max_input_tokens": args.max_new_tokens + args.max_prompt_tokens,
428-
},
429-
}
430-
agentic_config["generate_cfg"].update(
431-
{k: v for k, v in generate_config.items() if k in ["top_k", "top_p", "temperature"]}
432-
)
433-
elif args.agentic_type == "Agentic":
421+
if args.agentic_type == "Agentic":
434422
generate_config["stop"] = ["<|im_end|>"]
435423
generate_config["prompt_logprobs"] = 0
436424
agentic_config = {

0 commit comments

Comments
 (0)