qt-spyro-hf commited on
Commit
0cb5d52
·
verified ·
1 Parent(s): a6e34fe

Upload README.md

Browse files

instructions update

Files changed (1) hide show
  1. README.md +7 -8
README.md CHANGED
@@ -26,30 +26,29 @@ Note: These instructions are written for ollama version 0.5.7.
26
  #### 1. Install ollama
27
  https://ollama.com/download
28
 
29
- #### 2. Download the model repository
30
 
31
  #### 3. Open the terminal and go to the repository
32
 
33
  #### 4. Build the model in ollama
34
  ```
35
- ollama create <your-model-name> -f Modelfile
36
- e.g. ollama create customcodellama13bqml -f Modelfile
37
  ```
 
38
 
39
  #### 5. Run the model
40
  ```
41
- ollama run <your-model-name>
42
- e.g. ollama run customcodellame13bqml
43
  ```
44
  You can start writing prompts in the terminal or send curl requests now.
45
 
46
  Here is a curl request example:
47
  ```
48
  curl -X POST http://localhost:11434/api/generate -d '{
49
- "model": "codellama13bqml",
50
  "Prompt": "<SUF>\n title: qsTr(\"Hello World\")\n}<PRE>import QtQuick\n\nWindow {\n width: 640\n height: 480\n visible: true\n<MID>",
51
  "stream": false,
52
- "temperature": 0.4,
53
  "top_p": 0.9,
54
  "repeat_penalty": 1.1,
55
  "num_predict": 300,
@@ -69,4 +68,4 @@ If there is no suffix, please use:
69
 
70
 
71
  ## Model Version:
72
- v1.0
 
26
  #### 1. Install ollama
27
  https://ollama.com/download
28
 
29
+ #### 2. Clone the model repository
30
 
31
  #### 3. Open the terminal and go to the repository
32
 
33
  #### 4. Build the model in ollama
34
  ```
35
+ ollama create codellama:13b-code-qml -f Modelfile
 
36
  ```
37
+ The model's name must be exactly as above if one wants to use the model in the Qt Creator
38
 
39
  #### 5. Run the model
40
  ```
41
+ ollama run codellama:13b-code-qml
 
42
  ```
43
  You can start writing prompts in the terminal or send curl requests now.
44
 
45
  Here is a curl request example:
46
  ```
47
  curl -X POST http://localhost:11434/api/generate -d '{
48
+ "model": "codellama:13b-code-qml",
49
  "Prompt": "<SUF>\n title: qsTr(\"Hello World\")\n}<PRE>import QtQuick\n\nWindow {\n width: 640\n height: 480\n visible: true\n<MID>",
50
  "stream": false,
51
+ "temperature": 0,
52
  "top_p": 0.9,
53
  "repeat_penalty": 1.1,
54
  "num_predict": 300,
 
68
 
69
 
70
  ## Model Version:
71
+ v1.0