ngbcoder commited on
Commit
9536af5
·
verified ·
1 Parent(s): 7b2a866

Trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

Files changed (5) hide show
  1. .gitattributes +1 -0
  2. Llama-3.2-3B-Instruct.Q4_K_M.gguf +3 -0
  3. Modelfile +57 -0
  4. README.md +26 -0
  5. config.json +37 -0
.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
+ Llama-3.2-3B-Instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
Llama-3.2-3B-Instruct.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:608e0997b0047dd23247e07efc5a16c6deebb681fc3ce84ff6abe4e14f966d2c
3
+ size 2019377504
Modelfile ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM Llama-3.2-3B-Instruct.Q4_K_M.gguf
3
+ TEMPLATE """{{ if .Messages }}
4
+ {{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
5
+ {{- if .System }}
6
+
7
+ {{ .System }}
8
+ {{- end }}
9
+ {{- if .Tools }}
10
+
11
+ You are a helpful assistant with tool calling capabilities. When you receive a tool call response, use the output to format an answer to the original use question.
12
+ {{- end }}
13
+ {{- end }}<|eot_id|>
14
+ {{- range $i, $_ := .Messages }}
15
+ {{- $last := eq (len (slice $.Messages $i)) 1 }}
16
+ {{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
17
+ {{- if and $.Tools $last }}
18
+
19
+ Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
20
+
21
+ Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
22
+
23
+ {{ $.Tools }}
24
+ {{- end }}
25
+
26
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
27
+
28
+ {{ end }}
29
+ {{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
30
+ {{- if .ToolCalls }}
31
+
32
+ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
33
+ {{- else }}
34
+
35
+ {{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
36
+ {{- end }}
37
+ {{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
38
+
39
+ {{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
40
+
41
+ {{ end }}
42
+ {{- end }}
43
+ {{- end }}
44
+ {{- else }}
45
+ {{- if .System }}<|start_header_id|>system<|end_header_id|>
46
+
47
+ {{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
48
+
49
+ {{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
50
+
51
+ {{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}"""
52
+ PARAMETER stop "<|start_header_id|>"
53
+ PARAMETER stop "<|end_header_id|>"
54
+ PARAMETER stop "<|eot_id|>"
55
+ PARAMETER stop "<|eom_id|>"
56
+ PARAMETER temperature 1.5
57
+ PARAMETER min_p 0.1
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - gguf
4
+ - llama.cpp
5
+ - unsloth
6
+
7
+ ---
8
+
9
+ # flow-webdev-3b-gguf : GGUF
10
+
11
+ This model was finetuned and converted to GGUF format using [Unsloth](https://github.com/unslothai/unsloth).
12
+
13
+ **Example usage**:
14
+ - For text only LLMs: `llama-cli -hf ngbcoder/flow-webdev-3b-gguf --jinja`
15
+ - For multimodal models: `llama-mtmd-cli -hf ngbcoder/flow-webdev-3b-gguf --jinja`
16
+
17
+ ## Available Model files:
18
+ - `Llama-3.2-3B-Instruct.Q4_K_M.gguf`
19
+
20
+ ## Ollama
21
+ An Ollama Modelfile is included for easy deployment.
22
+
23
+ ## Note
24
+ The model's BOS token behavior was adjusted for GGUF compatibility.
25
+ This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
26
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "torch_dtype": "bfloat16",
9
+ "eos_token_id": 128009,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 3072,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 8192,
15
+ "max_position_embeddings": 131072,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 24,
19
+ "num_hidden_layers": 28,
20
+ "num_key_value_heads": 8,
21
+ "pad_token_id": 128004,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "factor": 32.0,
26
+ "high_freq_factor": 4.0,
27
+ "low_freq_factor": 1.0,
28
+ "original_max_position_embeddings": 8192,
29
+ "rope_theta": 500000.0,
30
+ "rope_type": "llama3"
31
+ },
32
+ "tie_word_embeddings": true,
33
+ "transformers_version": "5.17.0",
34
+ "unsloth_fixed": true,
35
+ "use_cache": true,
36
+ "vocab_size": 128256
37
+ }