Skip to content

Rewrite - #9

Merged
EthanPeng-2048 merged 43 commits into
mainfrom
rewrite
Aug 15, 2026
Merged

EthanPeng-2048 merged 43 commits into
mainfrom
rewrite

Conversation

@EthanPeng-2048

Copy link
Copy Markdown
Collaborator

No description provided.

EthanPeng-2048 and others added 30 commits July 15, 2026 13:49
1. tokenizer
2. model.io
Key features implemented:
- New matrix.hpp implementation with optimized algebra operations including transpose, matrix multiplication, and element-wise operations
- Added core assertion and error handling utilities with Result<T> type for error propagation
- Implemented SmartPolicy for automatic parallel/serial execution switching based on data size thresholds
- Added NN_HOT_FN macro for marking frequently called functions for compiler optimization
- Enhanced thread pool integration with block-level and sample-level parallelization strategies
- Integrated optional Vulkan GPU acceleration with automatic CPU fallback for matrix operations

The changes introduce a comprehensive matrix algebra system with intelligent execution policies that automatically optimize performance through parallelization, vectorization, and hardware acceleration when available.
Update from task d4bfd249-7b54-4e4d-afd8-89d5b55b5ea5
* Remove all Vulkan-related code including backend headers, shader files, and GPU tensor implementations
* Update Matrix class to remove GPU shadow functionality and related methods
* Clean up CMake configuration and build scripts to exclude Vulkan dependencies
* Simplify .gitignore to remove Vulkan-specific entries
* Implement CPU-based AST (Abstract Syntax Tree) for neural network operations in the cleaned-up codebase

The changes completely remove the GPU acceleration path and focus on a clean CPU implementation with an AST-based computation graph.
Update from task e39d4cae-0011-4e16-a683-40fff988c8f1
EthanPeng-2048 and others added 13 commits July 26, 2026 18:00
…sets

- Add build_rel/, go_games.txt, scripts/datasets/, scripts/tokenizers/ to .gitignore
- Add bpe_vocab.json, charbpe_fast.json, go_tokenizer.json, gpt_bpe_torch.json to .gitignore
- Remove from tracking: go_games.txt (204MB), 5 tokenizer/model JSON files
- All files remain on disk, only removed from git index
• gui.py: 引入TaskRunner统一处理子进程与线程管理,消除各Tab重复的threading.Thread代码
• gui.py: 创建FilePicker通用文件/目录选择器组件,简化文件路径获取界面代码
• gui.py: 实现ParamForm数据驱动表单系统,通过字段配置字典动态生成UI控件
• gui.py: 优化LogConsole黑底日志面板,提供一致的日志显示体验
• gui.py: 重构MNIST训练界面,使用新组件将代码从80行压缩至20行
• gui.py: 统一任务启动/停止逻辑,通过_task_done回调管理按钮状态
• .gitignore: 清空内容并重新构建完整的忽略规则配置

本次重构通过组件化设计大幅减少了代码重复,提升了GUI的可维护性和扩展性,同时保持了原有的功能完整性。
Update from task 2400bede-b801-4b48-91cb-ccb3757603a1
@EthanPeng-2048
EthanPeng-2048 merged commit b139e01 into main Aug 15, 2026
0 of 2 checks passed
@EthanPeng-2048
EthanPeng-2048 deleted the rewrite branch August 15, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants