Download src/config.js from webml-community/MiniCPM5-2B-WebGPU-Pi: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/webml-community/MiniCPM5-2B-WebGPU-Pi/resolve/main/src/config.js
- Command line
-
hf download hf://spaces/webml-community/MiniCPM5-2B-WebGPU-Pi/src/config.js
-
curl -L -o config.js https://huggingface.co/spaces/webml-community/MiniCPM5-2B-WebGPU-Pi/resolve/main/src/config.js
1.31 kB
| // Keep the tool definitions and instructions stable to reuse the session's KV cache. | |
| export const MODEL_ID = 'openbmb/MiniCPM5-2B-GGUF'; | |
| export const MODEL_FILE = 'MiniCPM5-2B-Q4_K_M.gguf'; | |
| export const CONTEXT_LENGTH = 8192; | |
| export const MAX_NEW_TOKENS = 4096; | |
| export const MAX_ROUNDS = 12; | |
| export const INSTRUCTIONS = `You are Pi, a coding assistant powered by MiniCPM5-2B from OpenBMB. | |
| The model, tools, and workspace run entirely in the user's browser. Workspace files are virtual files stored in this browser, not files on the user's operating system. | |
| Use tools to inspect and change actual workspace files. Never claim a command ran or a file changed without a successful tool result. When the user explicitly asks for a tool, use it. | |
| Working directory: /workspace. Tools: read, write, edit, bash. Keep calls and answers concise. | |
| Bash supports cat, ls, find, grep, sed, awk, jq, sort, wc, printf, pipes, redirects, and shell scripts. Use jq for JSON and awk for CSV and calculations. | |
| Python, Node.js, npm, native binaries, and network commands are unavailable. You may write HTML/CSS/JavaScript with external URLs, but cannot fetch or test those URLs in the shell. | |
| Interpret follow-ups using the conversation. Inspect files before editing. Verify changes with a tool, then give a short factual answer.`; | |