Downloads · 30 days
35
7% of all-time downloads
cris177/llama-2-7b-Arguments
llama-2-7b-Arguments is a text generation model from cris177. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model aims to detect and analyze casual arguments.
Downloads · 30 days
35
7% of all-time downloads
All-time downloads
476
Public
Parameters
6.7B
27 GB on disk
Likes
4
Public
Click a slice to open those files.
.bin13.5 GB · 50%
How the weights are stored.
F166.7B · 100%
From the Hugging Face model README
This model aims to detect and analyze casual arguments.
Model template:
<s>[INST] {prompt}
[/INST]
Example:
`<`s`>`[INST] Analize the following argument, identifying premises, conclusion, type of argument, and argument validity:
If officer smith found a broken window at the crime scene then the arson occurred on elm street, and officer smith found a broken window at the crime scene, hence the arson occurred on elm street.
[/INST] Premise 1: If officer smith found a broken window at the crime scene then the arson occurred on elm street Premise 2: Officer smith found a broken window at the crime scene Conclusion: The arson occurred on Elm Street Type of argument: modus ponen Validity: True `<`/s`>`
It was trained on my dataset cris177/Arguments (https://huggingface.co/datasets/cris177/Arguments)
Fine-tuning a large language model (LLM) to understand and generate logical arguments is a complex task. This article outlines the steps taken to fine-tune the LLaMA2-7B model, which included generating a dataset of arguments and evaluating the model's performance using a variety of benchmarks. Below are the detailed steps involved in this process.
The first step in creating a dataset for argument training involved generating a list of statements and their respective negations. This was accomplished using existing large language models (LLMs). By prompting the LLMs to produce a diverse set of statements and their negations, a foundational dataset was created. For instance:
Statement: "The sky is blue."
Statement: "Cats are mammals."
Using combinations of the generated statements, we created lists of modus ponens and modus tollens arguments.
Modus Ponens:
Example:
Modus Tollens:
Example:
Next, we created a comprehensive dataset of arguments, labeling each with its premises, conclusion, argument type (modus ponens or modus tollens), and validity. This structured dataset provided a rich resource for fine-tuning the LLaMA2-7B model. An example of a labeled data point is:
With the dataset prepared, the next step was to fine-tune the LLaMA2-7B model. The fine-tuning process involved training the model on the dataset, adjusting its parameters to improve its understanding and generation of logical arguments. This process included multiple training epochs and evaluations to ensure the model was learning effectively.
Finally, the fine-tuned model was evaluated using the Open-LLM-Leaderboard, which benchmarks LLMs through various tests:
TBD