tc043 Codex commited on
Commit
e41aa9d
·
1 Parent(s): 473cb68

feat: increase max_tokens to 64 and add model download instructions to README

Browse files
Files changed (2) hide show
  1. README.md +15 -3
  2. app.py +3 -3
README.md CHANGED
@@ -34,9 +34,21 @@ Choose Direct, Calm, or Encouraging before pressing Enter to start a session.
34
 
35
  ## Full Local Model Mode (Production)
36
 
37
- To run the full LLM backend, place the required quantized GGUF files under `models/`:
38
- * `step-zero-nemotron-finetuned.gguf`
39
- * `minicpm-3-4b.gguf`
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  Then run:
42
 
 
34
 
35
  ## Full Local Model Mode (Production)
36
 
37
+ To run the full LLM backend, you must first download the required quantized GGUF files into the `models/` directory.
38
+
39
+ You can download them using a quick Python script (since `huggingface-hub` is installed):
40
+ ```bash
41
+ mkdir -p models
42
+
43
+ # Download the fine-tuned Nemotron model
44
+ python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='tc043/step-zero-nemotron', filename='step-zero-nemotron-finetuned.gguf', local_dir='models')"
45
+
46
+ # Download the MiniCPM fallback model (Q4_K_M recommended for 4GB VRAM)
47
+ python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='mradermacher/MiniCPM3-4B-GGUF', filename='MiniCPM3-4B.Q4_K_M.gguf', local_dir='models')"
48
+
49
+ # Rename fallback model to match path config
50
+ mv models/MiniCPM3-4B.Q4_K_M.gguf models/minicpm-3-4b.gguf
51
+ ```
52
 
53
  Then run:
54
 
app.py CHANGED
@@ -113,7 +113,7 @@ async def generate_atomic_task(goal: str, previous_failures: int, history: list
113
  fallback_res = await run_minicpm(
114
  minicpm.create_chat_completion,
115
  messages=messages,
116
- max_tokens=20,
117
  temperature=0.1
118
  )
119
  content = fallback_res['choices'][0]['message']['content'].strip()
@@ -131,7 +131,7 @@ async def generate_atomic_task(goal: str, previous_failures: int, history: list
131
  response = await run_nemotron(
132
  nemotron,
133
  prompt,
134
- max_tokens=20,
135
  temperature=0.3,
136
  stop=["\n", "<extra_id_1>"],
137
  grammar=grammar # Enforcing grammar here!
@@ -161,7 +161,7 @@ async def generate_atomic_task(goal: str, previous_failures: int, history: list
161
  fallback_res = await run_minicpm(
162
  minicpm.create_chat_completion,
163
  messages=messages,
164
- max_tokens=20,
165
  temperature=0.1
166
  )
167
  content = fallback_res['choices'][0]['message']['content'].strip()
 
113
  fallback_res = await run_minicpm(
114
  minicpm.create_chat_completion,
115
  messages=messages,
116
+ max_tokens=64,
117
  temperature=0.1
118
  )
119
  content = fallback_res['choices'][0]['message']['content'].strip()
 
131
  response = await run_nemotron(
132
  nemotron,
133
  prompt,
134
+ max_tokens=64,
135
  temperature=0.3,
136
  stop=["\n", "<extra_id_1>"],
137
  grammar=grammar # Enforcing grammar here!
 
161
  fallback_res = await run_minicpm(
162
  minicpm.create_chat_completion,
163
  messages=messages,
164
+ max_tokens=64,
165
  temperature=0.1
166
  )
167
  content = fallback_res['choices'][0]['message']['content'].strip()