prithivMLmods commited on
Commit
0fb8e4b
1 Parent(s): b0a2eed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +104 -0
README.md CHANGED
@@ -1,5 +1,18 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
5
 
@@ -91,5 +104,96 @@ print(generated_lyrics)
91
 
92
  2. **Resource Requirements:**
93
  Ensure sufficient GPU memory and compute for large PyTorch model weights.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  ---
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - prithivMLmods/Song-Catalogue-Long-Thought
5
+ language:
6
+ - en
7
+ base_model:
8
+ - prithivMLmods/Llama-Song-Stream-3B-Instruct
9
+ pipeline_tag: text-generation
10
+ library_name: transformers
11
+ tags:
12
+ - Song-stream
13
+ - Llama3.2
14
+ - 3B
15
+ - text-generation-inference
16
  ---
17
 
18
 
 
104
 
105
  2. **Resource Requirements:**
106
  Ensure sufficient GPU memory and compute for large PyTorch model weights.
107
+ ---
108
+ ### Run with Ollama [ Ollama Run ]
109
+
110
+ ## Overview
111
+
112
+ Ollama is a powerful tool that allows you to run machine learning models effortlessly. This guide will help you download, install, and run your own GGUF models in just a few minutes.
113
+
114
+ ## Table of Contents
115
+
116
+ - [Download and Install Ollama](#download-and-install-ollama)
117
+ - [Steps to Run GGUF Models](#steps-to-run-gguf-models)
118
+ - [1. Create the Model File](#1-create-the-model-file)
119
+ - [2. Add the Template Command](#2-add-the-template-command)
120
+ - [3. Create and Patch the Model](#3-create-and-patch-the-model)
121
+ - [Running the Model](#running-the-model)
122
+ - [Sample Usage](#sample-usage)
123
+
124
+ ## Download and Install Ollama🦙
125
+
126
+ To get started, download Ollama from [https://ollama.com/download](https://ollama.com/download) and install it on your Windows or Mac system.
127
+
128
+ ## Steps to Run GGUF Models
129
+
130
+ ### 1. Create the Model File
131
+ First, create a model file and name it appropriately. For example, you can name your model file `metallama`.
132
+
133
+ ### 2. Add the Template Command
134
+ In your model file, include a `FROM` line that specifies the base model file you want to use. For instance:
135
+
136
+ ```bash
137
+ FROM Llama-3.2-1B.F16.gguf
138
+ ```
139
+
140
+ Ensure that the model file is in the same directory as your script.
141
+
142
+ ### 3. Create and Patch the Model
143
+ Open your terminal and run the following command to create and patch your model:
144
+
145
+ ```bash
146
+ ollama create metallama -f ./metallama
147
+ ```
148
+
149
+ Once the process is successful, you will see a confirmation message.
150
+
151
+ To verify that the model was created successfully, you can list all models with:
152
+
153
+ ```bash
154
+ ollama list
155
+ ```
156
+
157
+ Make sure that `metallama` appears in the list of models.
158
+
159
+ ---
160
+
161
+ ## Running the Model
162
+
163
+ To run your newly created model, use the following command in your terminal:
164
+
165
+ ```bash
166
+ ollama run metallama
167
+ ```
168
+
169
+ ### Sample Usage / Test
170
+
171
+ In the command prompt, you can execute:
172
+
173
+ ```bash
174
+ D:\>ollama run metallama
175
+ ```
176
+
177
+ You can interact with the model like this:
178
+
179
+ ```plaintext
180
+ >>> write a mini passage about space x
181
+ Space X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration.
182
+ With its ambitious goals to make humanity a multi-planetary species and establish a sustainable human presence in
183
+ the cosmos, Space X has become a leading player in the industry. The company's spacecraft, like the Falcon 9, have
184
+ demonstrated remarkable capabilities, allowing for the transport of crews and cargo into space with unprecedented
185
+ efficiency. As technology continues to advance, the possibility of establishing permanent colonies on Mars becomes
186
+ increasingly feasible, thanks in part to the success of reusable rockets that can launch multiple times without
187
+ sustaining significant damage. The journey towards becoming a multi-planetary species is underway, and Space X
188
+ plays a pivotal role in pushing the boundaries of human exploration and settlement.
189
+ ```
190
+ ---
191
+
192
+ ## Conclusion
193
+
194
+ With these simple steps, you can easily download, install, and run your own models using Ollama. Whether you're exploring the capabilities of Llama or building your own custom models, Ollama makes it accessible and efficient.
195
+
196
+
197
+ - This README provides clear instructions and structured information to help users navigate the process of using Ollama effectively. Adjust any sections as needed based on your specific requirements or additional details you may want to include.
198
 
199
  ---