TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Logos Shift Cloud – automatically finetune and replace expensive LLM

1 点作者 riddleronroof超过 1 年前
Great LLMs are best at general tasks.<p>However, once you know what you want, you should finetune and switch to your finetuned LLM.<p>Logos Shift Cloud handles this automatically<p>All you need is to add this to your call:<p>``` @logos_shift(dataset=&quot;story&quot;) def get_story(model, messages): &quot;&quot;&quot;Generates a story&quot;&quot;&quot; completion = expensiveLLM.create(model=model, messages=messages) story_d = {&#x27;story&#x27;: completion[&#x27;choices&#x27;][0][&#x27;message&#x27;]} return story_d ```<p>This will automatically log all inputs and outputs to this function unobtrusively. Once your model is ready, it will automatically A&#x2F;B rollout your finetuned LLM.<p>No code changes necessary. Enjoy faster and cheaper results.<p>No proxies so you don&#x27;t add one more dependency. The client code is open sourced at <a href="https:&#x2F;&#x2F;github.com&#x2F;virevolai&#x2F;logos-shift-client&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;virevolai&#x2F;logos-shift-client&#x2F;</a> which includes the instrumentation, router for switching, and exactly how this works.<p>It&#x27;s only 530 lines of code. No complex libraries.<p>If you do not want to use the Cloud solution, you can always just use Logos Shift for saving to local host and finetune yourself.<p>``` logos_shift = LogosShift(api_key=None, filename=&quot;api_calls.log&quot;) ```<p>Let us know how we can make this experience better.

暂无评论

暂无评论