GGUF
Inference Endpoints
conversational
nevril commited on
Commit
b9a394a
1 Parent(s): 51d876a

Upload 2 files

Browse files

Q8 commit, with Ollama Modelfile suggestion

.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ C2_llama31_8B_Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
C2_llama31_8B_Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea3b544f84604517e562829030e455e11e2d7dbd560bc643f3bfecbdf623868e
3
+ size 8540775392
OllamaModelfile_C2_llama31_8B_Q8x8K ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM PATH_TO_MODEL\C2_llama31_8B_Q8_0.gguf
2
+
3
+ PARAMETER num_ctx 8192
4
+
5
+ TEMPLATE """{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
6
+ {{- if .System }}
7
+
8
+ {{ .System }}
9
+ {{- end }}
10
+ {{- if .Tools }}
11
+
12
+ Cutting Knowledge Date: December 2023
13
+
14
+ When you receive a tool call response, use the output to format an answer to the original user question.
15
+
16
+ You are a helpful assistant with tool calling capabilities.
17
+ {{- end }}<|eot_id|>
18
+ {{- end }}
19
+ {{- range $i, $_ := .Messages }}
20
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
21
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
22
+ {{- if and $.Tools $last }}
23
+
24
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
25
+
26
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
27
+
28
+ {{ range $.Tools }}
29
+ {{- . }}
30
+ {{ end }}
31
+ Question: {{ .Content }}<|eot_id|>
32
+ {{- else }}
33
+
34
+ {{ .Content }}<|eot_id|>
35
+ {{- end }}{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
36
+
37
+ {{ end }}
38
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
39
+ {{- if .ToolCalls }}
40
+ {{ range .ToolCalls }}
41
+ {"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
42
+ {{- else }}
43
+
44
+ {{ .Content }}
45
+ {{- end }}{{ if not $last }}<|eot_id|>{{ end }}
46
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
47
+
48
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
49
+
50
+ {{ end }}
51
+ {{- end }}
52
+ {{- end }}"""
53
+
54
+ SYSTEM """You are an AI counselor designed to provide compassionate, evidence-based mental health support. Offer helpful, non-judgmental guidance focusing on validated techniques. Avoid diagnosing conditions, or speculative or unsafe advice."""