ar3xop commited on
Commit
40cee0d
·
verified ·
1 Parent(s): ec1e8a9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: llama2
5
+ tags:
6
+ - arcane
7
+ - mental-health
8
+ - crisis-analysis
9
+ - distress-detection
10
+ - nlp
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ # Arcane-7B
15
+
16
+ **Arcane-7B** is an instruction-tuned 7-billion parameter language model specialized for mental health, distress detection, and crisis analysis. It analyzes conversational text and social interactions to deliver structured diagnostic insights and interpretable clinical reasoning.
17
+
18
+ ## Overview
19
+ - **Model Size**: 7 Billion Parameters
20
+ - **Primary Function**: Multi-task mental health evaluation & explainable distress scoring
21
+ - **Supported Analysis**: Depression screening, stress cause identification, suicide risk detection, loneliness, and emotional wellbeing assessment.
22
+
23
+ ## Inference Example
24
+
25
+ ```python
26
+ import torch
27
+ from transformers import AutoTokenizer, AutoModelForCausalLM
28
+
29
+ model_id = "ar3xop/arcane-7b"
30
+
31
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
32
+ model = AutoModelForCausalLM.from_pretrained(
33
+ model_id,
34
+ torch_dtype=torch.float16,
35
+ device_map="auto"
36
+ )
37
+
38
+ prompt = 'Consider this post: "I feel completely overwhelmed by work and isolated lately." Question: What is the distress level and primary cause?'
39
+ inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
40
+
41
+ outputs = model.generate(inputs.input_ids, max_length=512, temperature=0.7)
42
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
43
+ ```