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

Configure model size constants using cfg attrs #12

Merged
merged 1 commit into from Aug 9, 2023

Conversation

rachtsingh
Copy link
Contributor

Hey Sasha,

I was trying out llama2.rs and wanted to swap between the 7B/13B versions on the fly, and I think using conditional compilation here makes it a bit easier.

I also spent some time trying to optimize the SIMD but it seems really fast! I couldn't find any easy optimizations.

@srush
Copy link
Owner

srush commented Aug 9, 2023

oh this is great! I had no idea it worked this way.

@srush srush merged commit ae3b1fb into srush:main Aug 9, 2023
@srush
Copy link
Owner

srush commented Aug 9, 2023

Maybe I will let it switch between quantized / non-quantized this way too.

@rachtsingh rachtsingh deleted the compile_time_config branch August 10, 2023 02:24
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.

None yet

2 participants