Commit
·
f9c54c8
1
Parent(s):
e287c06
(Trained with Unsloth)
Browse files
Modelfile
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM /content/harrykeeran12/radiology_error_mistral_gguf/unsloth.F16.gguf
|
2 |
+
|
3 |
+
TEMPLATE """Your task is to identify errors in unstructured radiology reports including omissions, extraneous statements, transcription errors, and internal inconsistencies. Analyze each report and output errors in JSON format.
|
4 |
+
|
5 |
+
Example 1:
|
6 |
+
Input: "Clinical Information:
|
7 |
+
Not given.
|
8 |
+
Technique:
|
9 |
+
Non-contrast images were taken in the axial plane with a section thickness of 1.5 m.
|
10 |
+
Findings:
|
11 |
+
Other findings are stable.
|
12 |
+
Impressions:
|
13 |
+
Not given."
|
14 |
+
|
15 |
+
Output: {
|
16 |
+
"errorsForWholeText": {
|
17 |
+
"errorType": "Transcription Error",
|
18 |
+
"errorPhrases": [
|
19 |
+
"Non-contrast images were taken in the axial plane with a section thickness of 1.5 m."
|
20 |
+
],
|
21 |
+
"errorExplanation": [
|
22 |
+
"The section thickness would normally be in millimetres not metres."
|
23 |
+
]
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
Example 2:
|
28 |
+
Input: "Clinical Information:
|
29 |
+
Patient with chronic headaches.
|
30 |
+
Technique:
|
31 |
+
MRI of the brain without contrast.
|
32 |
+
Findings:
|
33 |
+
No acute intracranial abnormality.
|
34 |
+
No evidence of mass effect or midline shift.
|
35 |
+
Ventricles are normal in size and configuration.
|
36 |
+
Impressions:
|
37 |
+
Normal brain MRI."
|
38 |
+
|
39 |
+
Output: {
|
40 |
+
"errorsForWholeText": "No errors found"
|
41 |
+
}
|
42 |
+
|
43 |
+
Example 3:
|
44 |
+
Input: "Clinical Information:
|
45 |
+
Fall from standing height.
|
46 |
+
Technique:
|
47 |
+
CT scan of the right wrist.
|
48 |
+
Findings:
|
49 |
+
There is a comminuted fracture of the distal radius.
|
50 |
+
No evidence of dislocation.
|
51 |
+
Impressions:
|
52 |
+
The patient has a sprained wrist."{{ if .Prompt }}
|
53 |
+
|
54 |
+
Output: {
|
55 |
+
"errorsForWholeText": {
|
56 |
+
"errorType": "Internal Inconsistency",
|
57 |
+
"errorPhrases": [
|
58 |
+
"There is a comminuted fracture of the distal radius.",
|
59 |
+
"The patient has a sprained wrist."
|
60 |
+
],
|
61 |
+
"errorExplanation": [
|
62 |
+
"The findings section identifies a fracture, but the impressions section only mentions a sprain, which is inconsistent."
|
63 |
+
]
|
64 |
+
}
|
65 |
+
}
|
66 |
+
Analyse the report below:
|
67 |
+
{{ .Prompt }}{{ end }}
|
68 |
+
|
69 |
+
### Response:
|
70 |
+
{{ .Response }}</s>"""
|
71 |
+
|
72 |
+
PARAMETER stop "[AVAILABLE_TOOLS]"
|
73 |
+
PARAMETER stop "[INST]"
|
74 |
+
PARAMETER stop "[/INST]"
|
75 |
+
PARAMETER stop "<unk>"
|
76 |
+
PARAMETER stop "[/AVAILABLE_TOOLS]"
|
77 |
+
PARAMETER stop "[TOOL_CALLS]"
|
78 |
+
PARAMETER stop "[TOOL_RESULTS]"
|
79 |
+
PARAMETER stop "[/TOOL_RESULTS]"
|
80 |
+
PARAMETER stop "</s>"
|
81 |
+
PARAMETER stop "[control_"
|
82 |
+
PARAMETER temperature 1.5
|
83 |
+
PARAMETER min_p 0.1
|