Earlier quoted context omitted.
Are there methods to "summarize what they've learned" and then replace the context window with the shorter version? This seems like pretty much what we do as humans anyway... we need to encode our experiences into stories to make any sense of them. A story is a compression and symbolization of the raw data one experiences.
Yeah that's a fairly well studied one. Most of these techniques are rather "lossy" compared to extending the context window. The most likely "real solution" is going to be using various tricks and finetuning on higher context lengths to just extend the context window. Here's a bunch of other related methods, Summarizing context - https://arxiv.org/abs/2305.14239 continuous finetuning - https://arxiv.org/pdf/2307.0283…
Is anyone using self hosted LLM day to day and training it like a new employee
51–60 of 75 posts
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#52I'm pretty interested in this as well. I have moved from Notion to Obsidian for my personal notes, to-do lists and errata in preparation for this since obsidian uses local plaintext files. What I would love to get working at some point is allowing an LLM access to my schedule, notes and goals and then have it help prompt me at appropriate times. "Hey, TJ I noticed you haven't worked out this week, it's sunny today th…
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#53Earlier quoted context omitted.
Yeah that's a fairly well studied one. Most of these techniques are rather "lossy" compared to extending the context window. The most likely "real solution" is going to be using various tricks and finetuning on higher context lengths to just extend the context window. Here's a bunch of other related methods, Summarizing context - https://arxiv.org/abs/2305.14239 continuous finetuning - https://arxiv.org/pdf/2307.0283…
Is there a realistic way to actually increase the context window?
However there's been some work that to "get extra milage" out of the current models so-to speak with rotary positions and a few other tricks. These in combination with finetuning is the current method many are using at the moment IIRC.
Here's a decent overview https://aman.ai/primers/ai/context-length-extension/
Rope - https://arxiv.org/abs/2306.15595
Yarn (based on rope) - https://arxiv.org/pdf/2309.00071.pdf
LongLoRA - https://arxiv.org/pdf/2309.12307.pdf
The bottleneck is quickly going to be inference. Since the current transformer models need the context length ^2, the memory requirements go up very quickly. IIRC a 4090 can _barely_ fit a 4bit 30B model in memory with 4096k context length.
From my understanding some form of RNNs are likely to be the next step for longer context. See RWKV as an example of a decent RNN https://arxiv.org/abs/2305.13048
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#54Re: Is anyone using self hosted LLM day to day and training it like a new employee
#55The most limiting factor I’ve come across is hitting the context window. Eventually your new eager employee starts to forget what you’ve taught them but they’re too confident to admit it.
I start to feel like a one eye king under blind people.
I even remember sometimes when I told people specific things.
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#56As a solo developer answering emails that basically point people to various guides and FAQs I’ve published … I need this. Zendesk claims to have an AI component but forces you to input all training data into their own wiki knowledge base. I can see why they don’t want to use prior responses as training (pii concerns), but at least give me some boilerplate responses that I can use to get a head start and further train…
Why not do it the old fashioned way and hire a human for this? Humans also have the advantage that they don't just make up answers when they don't know something (or at least if you hire good ones). I've had good experience hiring support folks and working with them on a shared inbox (we use HelpScout).
Cost is a huge problem. An immigration lawyer would continuously eat into my personal income. If I don't get state funding to cover it, it makes zero business sense. It would also come with all the liability of a first employee.
A GPT that cites my website, German law and a dozen official websites would be a game changer. It could not give advice, but it could find answers like Phind does. It's just tech, with lower running costs and virtually no obligations (unlike an employee).
I just don't know if the result would be useful and trustworthy enough, and it's very expensive to try.
My conclusion is that I should focus on building a good knowledge base, and when the time is ripe, I can augment it with fancy tech.
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#57Since you're using txtai, this article I just wrote yesterday might be helpful: https://neuml.hashnode.dev/build-rag-pipelines-with-txtai
Looks like you've received a lot of great ideas here already though!
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#58This works reasonably well with gpt4, but my context is almost always too large for self-hosted models so far.
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#59Currently the stack is gravitates around:
- GPT-4 - either to drive the entire workflow OR generate prompts, plans and guidelines for the local models to execute.
- structured knowledge bases (either derived from existing sources OR curated manually by companies to drive AI assistants).
- embedding search indexes, augmented by full-text search. Usually LLM has access to the search engine and can drive the search as needed, refining the queries if results aren't good enough.
All of that is instrumented with logic to capture user feedback at every single step. This is crucial for the continuous improvement of the model!
Bigger model can use this information once in a while, to improve plans and workflow guidelines to make the overall process more efficient.
AMA, if needed!
Re: Is anyone using self hosted LLM day to day and training it like a new employee
#60The most limiting factor I’ve come across is hitting the context window. Eventually your new eager employee starts to forget what you’ve taught them but they’re too confident to admit it.
What works in my experience - structuring the task similar to a human-driven workflow, breaking it down into small steps is needed. Each step could be driven by a small prompt, relevant document fragments (if RAG is used) and condensed essays/tutorials/guides that were written by a powerful LLM (ideally, GPT-4 pre-Turbo).
Using this approach, you could stay well below 8k token limit even on the most demanding tasks.
(Big size contexts are leaky on all LLMs anyway)