guinmoon / LLMFarm

llama and other large language models on iOS and MacOS offline using GGML library.
https://llmfarm.site
MIT License
1.05k stars 62 forks source link

Publish model updates on the main thread while fine tuneing #33

Closed jasjeev4 closed 5 months ago

jasjeev4 commented 5 months ago

This change should take care of the following warning:

Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:)) on model updates.

guinmoon commented 5 months ago

I don't think it will solve the problem. You have to fundamentally change the way you work with actors.