Instructions to use prometheus04/qwen3-4b-thinking-microagent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use prometheus04/qwen3-4b-thinking-microagent with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
microagent: align runtime SYSTEM_PROMPT with training data (multi-line bash blocks) — removes scaffold drift between SFT and inference
Browse files- microagent.py +2 -2
microagent.py
CHANGED
|
@@ -94,14 +94,14 @@ SYSTEM_PROMPT = """You are a terminal agent. You complete tasks by running bash
|
|
| 94 |
|
| 95 |
Respond in EXACTLY this format every turn:
|
| 96 |
<think>brief reasoning, max 2 sentences</think>
|
| 97 |
-
<bash>
|
| 98 |
|
| 99 |
When the task is fully complete and verified, respond instead with:
|
| 100 |
<think>brief verification reasoning</think>
|
| 101 |
<finish>one-line summary of what you did</finish>
|
| 102 |
|
| 103 |
Rules:
|
| 104 |
-
- One
|
| 105 |
- Multi-line files: cat <<'EOF' > path/to/file ... EOF
|
| 106 |
- Output is truncated (head + tail). Lines starting with [exit N] mean non-zero exit.
|
| 107 |
- Analyze errors before retrying. Never repeat a failed command unchanged.
|
|
|
|
| 94 |
|
| 95 |
Respond in EXACTLY this format every turn:
|
| 96 |
<think>brief reasoning, max 2 sentences</think>
|
| 97 |
+
<bash>shell commands (one or more lines)</bash>
|
| 98 |
|
| 99 |
When the task is fully complete and verified, respond instead with:
|
| 100 |
<think>brief verification reasoning</think>
|
| 101 |
<finish>one-line summary of what you did</finish>
|
| 102 |
|
| 103 |
Rules:
|
| 104 |
+
- One bash block per turn. Multiple lines run sequentially in the same shell.
|
| 105 |
- Multi-line files: cat <<'EOF' > path/to/file ... EOF
|
| 106 |
- Output is truncated (head + tail). Lines starting with [exit N] mean non-zero exit.
|
| 107 |
- Analyze errors before retrying. Never repeat a failed command unchanged.
|