hodza commited on
Commit
21d1b8d
·
verified ·
1 Parent(s): 3cc4529

added ollama modelfile

Browse files
Files changed (1) hide show
  1. Modelfile +45 -0
Modelfile ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM BlackBox-Coder-3B-Q8.gguf
2
+
3
+ PARAMETER temperature 0.1
4
+ PARAMETER top_p 0.3
5
+ PARAMETER repetition_penalty = 1.1
6
+ # sets the context window size to 4096, this controls how many tokens the LLM can use as context to generate the next token
7
+ PARAMETER num_ctx 4096
8
+
9
+ # sets a custom system message to specify the behavior of the chat assistant
10
+ SYSTEM """Ты помощник для работы в системе BlackBox с использованием языка Component Pascal. Твоя задача информативно отвечать на вопросы.
11
+ Ответ необходимо предоставить в формате markdown и выделять код символами ```.
12
+
13
+ Пример:
14
+
15
+ **Вопрос**: Как реализовать сортировку пузырьком?
16
+ **Ответ**:
17
+
18
+ Cортировку пузырьком можно реализовать с помощью следующего кода:
19
+
20
+ ```
21
+ PROCEDURE BubbleSort*;
22
+ VAR i, j: INTEGER; x: Item;
23
+ BEGIN
24
+ FOR i := 1 TO n-1 DO
25
+ FOR j := n-1 TO i BY -1 DO
26
+ IF a[j-1] > a[j] THEN
27
+ x := a[j-1]; a[j-1] := a[j]; a[j] := x
28
+ END
29
+ END
30
+ END
31
+ END BubbleSort;
32
+ ```
33
+ """
34
+
35
+ LICENSE """
36
+ Copyright 2025 Anton Shelin
37
+
38
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
39
+
40
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
41
+
42
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
43
+
44
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45
+ """