prithivMLmods commited on
Commit
f3f85ce
1 Parent(s): 3d87899

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +112 -3
README.md CHANGED
@@ -1,3 +1,112 @@
1
- ---
2
- license: creativeml-openrail-m
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: creativeml-openrail-m
3
+ language:
4
+ - en
5
+ base_model:
6
+ - HuggingFaceTB/SmolLM2-1.7B
7
+ tags:
8
+ - llama
9
+ - SmolLM2-1.7B
10
+ ---
11
+
12
+ ## SmolLM2-1.7B-GGUF
13
+
14
+ | File Name | Size | Quantization Level | Description |
15
+ |----------------------------------|--------|---------------------|-----------------------------------------------------------------------------------------------------|
16
+ | `SmolLM2-1.7B.F16.gguf` | 3.42GB | FP16 | Full precision 16-bit floats, offering the best accuracy, suitable for high-performance setups. |
17
+ | `SmolLM2-1.7B.Q4_K_M.gguf` | 1.06GB | Q4 | Quantized to 4-bit, prioritizes memory efficiency and faster inference, with a trade-off in accuracy. |
18
+ | `SmolLM2-1.7B.Q5_K_M.gguf` | 1.23GB | Q5 | Balanced quantization at 5-bit, offering a compromise between memory use and model accuracy. |
19
+ | `SmolLM2-1.7B.Q8_0.gguf` | 1.82GB | Q8 | 8-bit quantization, designed for moderate performance with improved accuracy over lower-bit models. |
20
+
21
+ # Run with Ollama 🦙
22
+
23
+ ## Overview
24
+
25
+ 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.
26
+
27
+ ## Table of Contents
28
+
29
+ - [Download and Install Ollama](#download-and-install-ollama)
30
+ - [Steps to Run GGUF Models](#steps-to-run-gguf-models)
31
+ - [1. Create the Model File](#1-create-the-model-file)
32
+ - [2. Add the Template Command](#2-add-the-template-command)
33
+ - [3. Create and Patch the Model](#3-create-and-patch-the-model)
34
+ - [Running the Model](#running-the-model)
35
+ - [Sample Usage](#sample-usage)
36
+
37
+ ## Download and Install Ollama🦙
38
+
39
+ To get started, download Ollama from [https://ollama.com/download](https://ollama.com/download) and install it on your Windows or Mac system.
40
+
41
+ ## Steps to Run GGUF Models
42
+
43
+ ### 1. Create the Model File
44
+ First, create a model file and name it appropriately. For example, you can name your model file `metallama`.
45
+
46
+ ### 2. Add the Template Command
47
+ In your model file, include a `FROM` line that specifies the base model file you want to use. For instance:
48
+
49
+ ```bash
50
+ FROM Llama-3.2-1B.F16.gguf
51
+ ```
52
+
53
+ Ensure that the model file is in the same directory as your script.
54
+
55
+ ### 3. Create and Patch the Model
56
+ Open your terminal and run the following command to create and patch your model:
57
+
58
+ ```bash
59
+ ollama create metallama -f ./metallama
60
+ ```
61
+
62
+ Once the process is successful, you will see a confirmation message.
63
+
64
+ To verify that the model was created successfully, you can list all models with:
65
+
66
+ ```bash
67
+ ollama list
68
+ ```
69
+
70
+ Make sure that `metallama` appears in the list of models.
71
+
72
+ ---
73
+
74
+ ## Running the Model
75
+
76
+ To run your newly created model, use the following command in your terminal:
77
+
78
+ ```bash
79
+ ollama run metallama
80
+ ```
81
+
82
+ ### Sample Usage
83
+
84
+ In the command prompt, you can execute:
85
+
86
+ ```bash
87
+ D:\>ollama run metallama
88
+ ```
89
+
90
+ You can interact with the model like this:
91
+
92
+ ```plaintext
93
+ >>> write a mini passage about space x
94
+ Space X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration.
95
+ With its ambitious goals to make humanity a multi-planetary species and establish a sustainable human presence in
96
+ the cosmos, Space X has become a leading player in the industry. The company's spacecraft, like the Falcon 9, have
97
+ demonstrated remarkable capabilities, allowing for the transport of crews and cargo into space with unprecedented
98
+ efficiency. As technology continues to advance, the possibility of establishing permanent colonies on Mars becomes
99
+ increasingly feasible, thanks in part to the success of reusable rockets that can launch multiple times without
100
+ sustaining significant damage. The journey towards becoming a multi-planetary species is underway, and Space X
101
+ plays a pivotal role in pushing the boundaries of human exploration and settlement.
102
+ ```
103
+
104
+ ---
105
+
106
+ ## Conclusion
107
+
108
+ 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.
109
+
110
+
111
+ - 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.
112
+