Update README.md
Browse files
README.md
CHANGED
|
@@ -74,7 +74,7 @@ def llmCompletion(prompt, **args):
|
|
| 74 |
response = requests.post(url, headers=headers, json=data)
|
| 75 |
return response.json()
|
| 76 |
|
| 77 |
-
def
|
| 78 |
instruction = 'Based on the following argument, identify the following elements: premises, conclusion, propositions, type of argument, negation of propositions and validity.'
|
| 79 |
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
| 80 |
|
|
@@ -134,9 +134,9 @@ First make sure to pip install -U transformers, then use the code below replacin
|
|
| 134 |
```python
|
| 135 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 136 |
|
| 137 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 138 |
device_map="auto",)
|
| 139 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 140 |
|
| 141 |
argument = "If it's wednesday it's cold, and it's cold, therefore it's wednesday."
|
| 142 |
|
|
|
|
| 74 |
response = requests.post(url, headers=headers, json=data)
|
| 75 |
return response.json()
|
| 76 |
|
| 77 |
+
def analyze_argument(argument):
|
| 78 |
instruction = 'Based on the following argument, identify the following elements: premises, conclusion, propositions, type of argument, negation of propositions and validity.'
|
| 79 |
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
| 80 |
|
|
|
|
| 134 |
```python
|
| 135 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 136 |
|
| 137 |
+
model = AutoModelForCausalLM.from_pretrained("cris177/Qwen2-Simple-Arguments",
|
| 138 |
device_map="auto",)
|
| 139 |
+
tokenizer = AutoTokenizer.from_pretrained("cris177/Qwen2-Simple-Arguments")
|
| 140 |
|
| 141 |
argument = "If it's wednesday it's cold, and it's cold, therefore it's wednesday."
|
| 142 |
|