Ask HN: Guides, books or repos for LLM fine-tuning
1–10 of 13 posts
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#2If it's just some simple text that is fairly regular then you might not need actual fine tuning. You could just use the OpenAI API.
https://github.com/leehanchung/lora-instruct
What exactly are the HPC resources. Are they GPUs and what type and how many.
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#3Please state the assignment in detail. What are you classifying exactly, for example. If it's just some simple text that is fairly regular then you might not need actual fine tuning. You could just use the OpenAI API. https://github.com/leehanchung/lora-instruct What exactly are the HPC resources. Are they GPUs and what type and how many.
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#4Please state the assignment in detail. What are you classifying exactly, for example. If it's just some simple text that is fairly regular then you might not need actual fine tuning. You could just use the OpenAI API. https://github.com/leehanchung/lora-instruct What exactly are the HPC resources. Are they GPUs and what type and how many.
Thank you for your answer. The objective of the assignment is to classify agents of misinformation based on their tweets. An example element of the dataset can be found at this link: https://ibb.co/16VMTCN . There is a dataset for the control group and a dataset of misinformation agents. The idea is to make the model closer to how misinformation agents are via fine-tuning on these datasets. The available HPC resource…
You can probably just use the OpenAI ChatGPT model and ask it something like:
"Does this user's tweet say anything negative about the government of ______ or contradict any of these official party statements? __________"
You can probably just ask Falcon or Llama the same thing without any training. But if you decide you have to do the fine tuning then try with my link above using the A100 GPU nodes.
I think the whole thing is nonsense though. Because whoever the arbiter of truth is always has an agenda and often makes mistakes.
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#5Earlier quoted context omitted.
Thank you for your answer. The objective of the assignment is to classify agents of misinformation based on their tweets. An example element of the dataset can be found at this link: https://ibb.co/16VMTCN . There is a dataset for the control group and a dataset of misinformation agents. The idea is to make the model closer to how misinformation agents are via fine-tuning on these datasets. The available HPC resource…
Ok. I think I understand the assignment. I don't believe you need to fine tune any model. You can probably just use the OpenAI ChatGPT model and ask it something like: "Does this user's tweet say anything negative about the government of ______ or contradict any of these official party statements? __________" You can probably just ask Falcon or Llama the same thing without any training. But if you decide you have to…
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#6Please state the assignment in detail. What are you classifying exactly, for example. If it's just some simple text that is fairly regular then you might not need actual fine tuning. You could just use the OpenAI API. https://github.com/leehanchung/lora-instruct What exactly are the HPC resources. Are they GPUs and what type and how many.
Thank you for your answer. The objective of the assignment is to classify agents of misinformation based on their tweets. An example element of the dataset can be found at this link: https://ibb.co/16VMTCN . There is a dataset for the control group and a dataset of misinformation agents. The idea is to make the model closer to how misinformation agents are via fine-tuning on these datasets. The available HPC resource…
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#7Earlier quoted context omitted.
Thank you for your answer. The objective of the assignment is to classify agents of misinformation based on their tweets. An example element of the dataset can be found at this link: https://ibb.co/16VMTCN . There is a dataset for the control group and a dataset of misinformation agents. The idea is to make the model closer to how misinformation agents are via fine-tuning on these datasets. The available HPC resource…
Ok. I think I understand the assignment. I don't believe you need to fine tune any model. You can probably just use the OpenAI ChatGPT model and ask it something like: "Does this user's tweet say anything negative about the government of ______ or contradict any of these official party statements? __________" You can probably just ask Falcon or Llama the same thing without any training. But if you decide you have to…
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#8Earlier quoted context omitted.
Thank you for your answer. The objective of the assignment is to classify agents of misinformation based on their tweets. An example element of the dataset can be found at this link: https://ibb.co/16VMTCN . There is a dataset for the control group and a dataset of misinformation agents. The idea is to make the model closer to how misinformation agents are via fine-tuning on these datasets. The available HPC resource…
Ok. I think I understand the assignment. I don't believe you need to fine tune any model. You can probably just use the OpenAI ChatGPT model and ask it something like: "Does this user's tweet say anything negative about the government of ______ or contradict any of these official party statements? __________" You can probably just ask Falcon or Llama the same thing without any training. But if you decide you have to…
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#9Earlier quoted context omitted.
Ok. I think I understand the assignment. I don't believe you need to fine tune any model. You can probably just use the OpenAI ChatGPT model and ask it something like: "Does this user's tweet say anything negative about the government of ______ or contradict any of these official party statements? __________" You can probably just ask Falcon or Llama the same thing without any training. But if you decide you have to…
If the assignment is to classify the type of misinformation (assuming each tweet is misinformation) then it’s essentially topic modeling which is very doable without fine tuning as well.
Re: Ask HN: Guides, books or repos for LLM fine-tuning
#10Earlier quoted context omitted.
If the assignment is to classify the type of misinformation (assuming each tweet is misinformation) then it’s essentially topic modeling which is very doable without fine tuning as well.
This is what I was thinking about using LLM for: 1. As a feature extractor. For example, given the text of misinformation agents, what are the characteristics? C1, C2, C3, etc. Then, do these characteristics appear in these new texts? Assign a label accordingly. 2. I'll give LLM the text on how they usually behave and ask if these new ones are behaving similarly. If so, label them accordingly. (There may also be the…
IMO the easiest way to fine tune your model would be to use something like BERT embeddings fine tuned with triplet loss i.e. (example, positive, negative) to train the model to minimize distance between similar examples and maximize between dissimilar ones.