Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fundamental codebase refactor #156

Merged
merged 87 commits into from
Feb 12, 2025
Merged

feat: fundamental codebase refactor #156

merged 87 commits into from
Feb 12, 2025

Conversation

b4rtaz
Copy link
Owner

@b4rtaz b4rtaz commented Feb 6, 2025

This PR introduces fundamental changes in Distributed Llama. Work in progress.

List of changes:

  • ✅ Introduced an abstract neural network model with opcodes to describe neural network behavior
  • ✅ Completely restructure the project
  • ✅ Batch processing to support evaluation and prediction #138
  • ✅ Speed up matmul operation for the evaluation (used sgemm llamafile)
  • ✅ Improve tokenizer
  • ✅ Fixed obvious memory leaks (detected by -fsanitize=address)
  • ✅ ARM and AVX2 optimalisation for all op codes

Fixes:

  • Fixed a bug in rope scaling
  • Fixed a bug in the tokenizer that caused invalidly tokenized special tokens

This was referenced Feb 6, 2025
@b4rtaz b4rtaz marked this pull request as ready for review February 12, 2025 22:59
@b4rtaz b4rtaz merged commit 121bc8c into main Feb 12, 2025
6 checks passed
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