Spaces:
Running on Zero
Running on Zero
Commit History
-
fix: Increase GPU duration to 150s
ce62afe -
feat: Implement dual-context workflow extraction
de239b9 -
feat: Implement colored output for thinking tokens
0d2c9df -
feat: Implement debug mode for token inspection
3fed591 -
feat: Refactor comp.py and add gitignore
Refactor comp.py to: - Add trust_remote_code=True to AutoTokenizer. - Change system prompt to Chinese. - Add comments for better readability. Add .gitignore to ignore temporary directories.aa73b52
-
Refactor: Implement streaming response and simplify architecture
- Replace LangGraph with a direct Gradio implementation for simplicity and performance. - Implement streaming responses using `TextIteratorStreamer` for a better user experience. - Use `tokenizer.apply_chat_template` for robust prompt formatting. - Remove obsolete `graph.py.9602bb7 -
fix: 显式传递 attention_mask 以修复生成警告
491422c -
fix: 推理前将输入张量移动到模型设备
a074dc6 -
refactor: 重构项目结构并优化模型加载方式
将应用逻辑拆分为三个独立的模块: - `app.py`: Gradio 界面及应用入口。 - `graph.py`: LangGraph 状态及工作流定义。 - `comp.py`: 模型加载及推理逻辑。 此次变更还在 `comp.py` 中更新了模型加载方式,使用 `device_map="auto"` 和 `torch_dtype="auto"` 以实现硬件自动优化,提高可移植性。551e9e2