News for hackers. Stuff that matters.
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by Tostino on Thursday November 30, 2023 @09:38PM (#38482347)
It depends on what you're doing... Just for reference, here is a small showcase of the capabilities that I've trained on a 13 billion parameter llama2 fine tune (done with qlora).

https://old.reddit.com/r/LocalLLaMA/comments/186qq92/comment...

Edit: Embed some of the content instead.

Inkbot can create knowledge graphs. The structure returned is proper YAML, and I got much better results with my fine-tune than using GPT4.

https://huggingface.co/Tostino/Inkbot-13B-8k-0.2

Simple prompt: https://gist.github.com/Tostino/c3541f3a01d420e771f66c62014e...

Complex prompt: https://gist.github.com/Tostino/44bbc6a6321df5df23ba5b400a01...

It also does chunked summarization.

Here is an example of chunking:

Part 1: chunked summarization - https://gist.github.com/Tostino/cacb1cecdf2eb7386baf565d157f...

Part 2: summary-of-summaries - https://gist.github.com/Tostino/81eeee9781e519044950332b4e64...

Here is an example of a single-shot document that fits entirely within context: https://gist.github.com/Tostino/4ba4e7e7988348134a7256fd1cbb...

Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by reactive001 on Friday December 01, 2023 @12:13AM (#38483404)
Amazing work, I've really wanted to get into knowledge graph generation with LLM's for the last year but haven't found the time. Glad to see someone making good progress on the idea!

How are you going about generating training data?

Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by Tostino on Friday December 01, 2023 @12:19AM (#38483447)
Lots and lots of manual review of very detailed instructions to "more powerful LLMs" with 2-4 prompts to generate the training data.
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by cced on Thursday November 30, 2023 @10:29PM (#38482766)
Have any references on how you fine tuned?
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by Tostino on Thursday November 30, 2023 @10:33PM (#38482800)
Sure thing, I used axolotl, and my training parameters were:

sequence_len: 6144 lora_r: 128 lora_alpha: 48 learning_rate: 0.00006 warmup_steps: 600 lr_scheduler: cosine gradient_accumulation_steps: 4 micro_batch_size: 1 num_epochs: 4 optimizer: paged_adamw_32bit flash_attention: true sample_packing: true

Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by kaycebasques on Friday December 01, 2023 @10:46AM (#38488101)
Thanks for sharing all these details throughout the thread, Tostino. True open source spirit.
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by thecal on Friday December 01, 2023 @07:52AM (#38486109)
I really like Inkbot! Are you working on a new version? How about one from Yi 34B?
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by Tostino on Friday December 01, 2023 @08:27AM (#38486403)
Yeah, I will be soon.

I was busy adding `chat template` support to vLLM recently, so the model (and any others that implement it properly) will work seamlessly with a clone of the OpenAI chat/completions endpoint.

https://github.com/vllm-project/vllm/pull/1756

Now that I have that out of the way, back to model training ;).

Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by thecal on Friday December 01, 2023 @08:45AM (#38486563)
Very cool, looking forward to it!
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by anon373839 on Friday December 01, 2023 @05:22PM (#38493343)
This looks really impressive. Any chance a 7B Inkbot is in the works?
Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by Tostino on Friday December 01, 2023 @05:28PM (#38493412)
Yeah, i'll be training a Mistral variant soon (and some of the larger, newer models as well).

I had a few dataset issues I know about that I wanted to fix first.

Re:ChatGPT's 1-Year Anniversary: Are Open-Source Large Langu... by anon373839 on Friday December 01, 2023 @05:36PM (#38493513)
That’s great to hear. Thanks!