Create Modelfile
Browse files
Modelfile
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Modelfile generated by "ollama show"
|
2 |
+
# To build a new Modelfile based on this, replace FROM with:
|
3 |
+
# FROM phi3.5:latest
|
4 |
+
|
5 |
+
FROM phi-3.5-mini-instruct-fp16.gguf
|
6 |
+
|
7 |
+
TEMPLATE """
|
8 |
+
{{ if .System }}<|system|>
|
9 |
+
{{ .System }}<|end|>
|
10 |
+
{{ end }}{{ if .Prompt }}<|user|>
|
11 |
+
{{ .Prompt }}<|end|>
|
12 |
+
{{ end }}<|assistant|>
|
13 |
+
{{ .Response }}<|end|>
|
14 |
+
"""
|
15 |
+
|
16 |
+
LICENSE """MIT License
|
17 |
+
|
18 |
+
Copyright (c) Microsoft Corporation.
|
19 |
+
|
20 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
21 |
+
of this software and associated documentation files (the "Software"), to deal
|
22 |
+
in the Software without restriction, including without limitation the rights
|
23 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
24 |
+
copies of the Software, and to permit persons to whom the Software is
|
25 |
+
furnished to do so, subject to the following conditions:
|
26 |
+
|
27 |
+
The above copyright notice and this permission notice shall be included in all
|
28 |
+
copies or substantial portions of the Software.
|
29 |
+
|
30 |
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
31 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
32 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
33 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
34 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
35 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
36 |
+
SOFTWARE."""
|
37 |
+
❯ cat Modelfile
|
38 |
+
# Modelfile generated by "ollama show"
|
39 |
+
# To build a new Modelfile based on this, replace FROM with:
|
40 |
+
# FROM phi3.5:latest
|
41 |
+
|
42 |
+
FROM phi-3.5-mini-instruct-q4_k_m.gguf
|
43 |
+
|
44 |
+
TEMPLATE """
|
45 |
+
{{ if .System }}<|system|>
|
46 |
+
{{ .System }}<|end|>
|
47 |
+
{{ end }}{{ if .Prompt }}<|user|>
|
48 |
+
{{ .Prompt }}<|end|>
|
49 |
+
{{ end }}<|assistant|>
|
50 |
+
{{ .Response }}<|end|>
|
51 |
+
"""
|
52 |
+
|
53 |
+
LICENSE """MIT License
|
54 |
+
|
55 |
+
Copyright (c) Microsoft Corporation.
|
56 |
+
|
57 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
58 |
+
of this software and associated documentation files (the "Software"), to deal
|
59 |
+
in the Software without restriction, including without limitation the rights
|
60 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
61 |
+
copies of the Software, and to permit persons to whom the Software is
|
62 |
+
furnished to do so, subject to the following conditions:
|
63 |
+
|
64 |
+
The above copyright notice and this permission notice shall be included in all
|
65 |
+
copies or substantial portions of the Software.
|
66 |
+
|
67 |
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
68 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
69 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
70 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
71 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
72 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
73 |
+
SOFTWARE."""
|