Re:Small offline large language model – TinyChatEngine from MIT
by PeterStuer on Monday December 18, 2023 @05:37AM
(#38680999)
Python is only used in the toolchain, the inference engine is entirely C/C++.
Re:Small offline large language model – TinyChatEngine from MIT
by physicsgraph on Monday December 18, 2023 @07:08AM
(#38681448)
Thanks for the suggestion. I'm new to running LLMs so I'll take a look at your suggestion [0]. My ~10 year old MacBook Air has 4GB of RAM, so I'm primarily interested in smaller LLMs.
Re:Small offline large language model – TinyChatEngine from MIT
by akx on Monday December 18, 2023 @07:12AM
(#38681484)
You don't necessarily need to fit the model all in memory – llama.cpp supports mmaping the model directly from disk in some cases. Naturally inference speed will be affected.
Re:Small offline large language model – TinyChatEngine from MIT
by j-bos on Monday December 18, 2023 @08:40AM
(#38682290)
I'm curious, what do you use these small LLMs for, like can you give some examples of (not too) personal uses cases from the past month?
Re:Small offline large language model – TinyChatEngine from MIT
by SOLAR_FIELDS on Monday December 18, 2023 @10:28AM
(#38683718)
My understanding (I haven’t used a fine tuned one) is that you can use one that you fine tune yourself for narrow automation tasks. Kind of like a superpowered script. From my llama 2 7b experiments I have not gotten great results out of the non fine tuned versions of the model for coding tasks. I haven’t tried code llama yet.
Re:Small offline large language model – TinyChatEngine from MIT
by TotalCrackpot on Monday December 18, 2023 @10:23AM
(#38683665)
Btw, shouldn't it in theory be possible to run the Mixtral MoE loading next submodel sequentially and store outputs and then do the rest of the algorithm to make it easier to run on machines that cannot fit whole model in the memory?
Re:Small offline large language model – TinyChatEngine from MIT
by wfhpw on Monday December 18, 2023 @11:06AM
(#38684334)
Yes but loading weights into memory takes time
Re:Small offline large language model – TinyChatEngine from MIT
by TotalCrackpot on Monday December 18, 2023 @11:11AM
(#38684405)
Yeah I imagine sequential inference would be slower. How long do you have to wait to load these weights on a personal PC? I have not tried using those systems so far.
Also there are better models than the one suggested. Mistral for 7B parameters. Yi if you want to go larger and happen to have 32Gb of memory. Mixtral MoE is the best but requires too much memory right now for most users.