News for hackers. Stuff that matters.
Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by chaos_emergent on Friday August 25, 2023 @01:15PM (#37264345)
Not only that, but the model was trained on 172 training examples - and the conversations aren't remotely like the therapist conversations I've had in terms of nuance or topic.
Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by iamarunbrahma on Friday August 25, 2023 @01:31PM (#37264545)
This is a toy project. Hence, large-scale collection of data and pre-processing them into conversational format, also removing sensitive information is not possible. I was able to curate only 172 rows of data.

I have shared a notebook and explained detailed steps in my blog - https://medium.com/@iamarunbrahma/fine-tuning-of-falcon-7b-l.... If you are interested to replicate the steps on medical-domain therapy chat transcripts, you are definitely welcome. If you face any issues during fine-tuning steps, you can connect with me on my blog. Would love to help out!

Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by thuuuomas on Friday August 25, 2023 @02:13PM (#37265188)
> I was able to curate only 172 rows of data

Skill issue - focus more on data integrity & less on HN clout

Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by drsamuel507 on Friday August 25, 2023 @02:20PM (#37265278)
Oh!! So, you want every individual who post their github repo on HN; to collect dataset like billions of dollars funded startups and make a reliable chatbot which not a single well funded startup or listed NASDAQ companies could have done. I salute you.
Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by SamPatt on Friday August 25, 2023 @05:28PM (#37267264)
OP is sharing a personal project, he's not claiming he's solved the mental health crisis.

This is Hacker News. These types of projects are half of the reason I come here, what's with the hate?

Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by bpiche on Friday August 25, 2023 @02:21PM (#37265285)
It is interesting. Sorry to pour so much cold water on the topic, it's more the application than the code that people have issue with.

I wonder if retrieval augmented generation would be appropriate here too. Fast, scalable. Fine-tuning is comparatively pretty expensive.

Thanks for sharing your code, iamarunbrahma.

Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by iamarunbrahma on Friday August 25, 2023 @02:40PM (#37265554)
The purpose of this project was to showcase how can we fine-tune large models on a free-tier GPU provided by Colab. Hence, any individual can utilize parameter-efficient fine-tuning methods to tune LLMs on domain-specific datasets.

RAG and fine-tuning serves a slightly different purpose. Fine-tuning helps LLM in learning a new task/skill such as question/answering task, summarization task etc, and improving reliability at producing a desired output such as JSON format structure thereby reducing dependency on prompt engineering.

On the other hand, RAG provides you with external domain-specific knowledge, which one can leverage to get latest information.

Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by bpiche on Friday August 25, 2023 @02:46PM (#37265640)
I see, thank you for the explanation. RAG is also appropriate for question/answering but I do see your point. Can see myself returning to your code for inspiration soon.
Re:Finetuning of Falcon-7B LLM Using QLoRA on Mental Health ... by azinman2 on Friday August 25, 2023 @01:18PM (#37264391)
It’s just Q&A. To call this a chat is very misleading.