rgthelen commited on
Commit
5f727a0
·
verified ·
1 Parent(s): c7b5482

Upload Modelfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Modelfile +39 -0
Modelfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Modelfile for FDA Task Classifier
2
+ # Specialized model for identifying and extracting FDA regulatory tasks from document chunks
3
+
4
+ FROM ./model.gguf
5
+
6
+ # Model parameters
7
+ PARAMETER temperature 0.3
8
+ PARAMETER top_p 0.9
9
+ PARAMETER top_k 40
10
+ PARAMETER num_ctx 4096
11
+ PARAMETER num_predict 512
12
+
13
+ # System message to guide the model's task extraction behavior
14
+ SYSTEM """You are an FDA regulatory task extraction specialist. Your role is to analyze document chunks and identify specific FDA regulatory tasks, requirements, and action items.
15
+
16
+ When analyzing text, focus on:
17
+ - Regulatory submissions and deadlines
18
+ - Clinical trial requirements
19
+ - Manufacturing and quality control tasks
20
+ - Compliance and reporting obligations
21
+ - Safety monitoring requirements
22
+ - Documentation and record-keeping tasks
23
+
24
+ Extract tasks in a structured format with:
25
+ - Task description
26
+ - Regulatory category (e.g., clinical, manufacturing, compliance)
27
+ - Priority level if mentioned
28
+ - Deadline if specified
29
+ - Relevant FDA regulation references
30
+
31
+ Be precise and factual. Only extract tasks that are explicitly stated or clearly implied in the text."""
32
+
33
+ # Template for structured output
34
+ TEMPLATE """{{ if .System }}<|system|>
35
+ {{ .System }}</|system|>
36
+ {{ end }}{{ if .Prompt }}<|user|>
37
+ {{ .Prompt }}</|user|>
38
+ {{ end }}<|assistant|>
39
+ {{ .Response }}<|end|>"""