prithivMLmods commited on
Commit
4e935ba
1 Parent(s): 1cf1c04

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +136 -1
README.md CHANGED
@@ -15,4 +15,139 @@ tags:
15
  - Math
16
  - CoT
17
  - One-Shot
18
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  - Math
16
  - CoT
17
  - One-Shot
18
+ ---
19
+ ![aaa.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/faLfR-doaWP_BLUkOQrbq.png)
20
+
21
+ ### Math IIO 7B Instruct GGUF
22
+
23
+
24
+ | File Name | Size | Description | Upload Status |
25
+ |----------------------------------------|------------|-----------------------------------------------|----------------|
26
+ | `.gitattributes` | 1.79 kB | Git attributes configuration file | Uploaded |
27
+ | `Math-IIO-7B-Instruct.F16.gguf` | 15.2 GB | Full precision (FP16) model weights | Uploaded (LFS) |
28
+ | `Math-IIO-7B-Instruct.Q4_K_M.gguf` | 4.68 GB | Quantized model weights (Q4_K_M) | Uploaded (LFS) |
29
+ | `Math-IIO-7B-Instruct.Q5_K_M.gguf` | 5.44 GB | Quantized model weights (Q5_K_M) | Uploaded (LFS) |
30
+ | `Math-IIO-7B-Instruct.Q8_0.gguf` | 8.1 GB | Quantized model weights (Q8_0) | Uploaded (LFS) |
31
+ | `Modelfile` | 1.69 kB | Model metadata and structure definition | Uploaded |
32
+ | `README.md` | 259 Bytes | Minimal README file | Updated |
33
+ | `config.json` | 29 Bytes | Model configuration settings | Uploaded |
34
+
35
+ The **Math IIO 7B Instruct** is a fine-tuned language model based on the robust **Qwen2.5-7B-Instruct** architecture. This model has been specifically trained to excel in single-shot mathematical reasoning and instruction-based tasks, making it a reliable choice for educational, analytical, and problem-solving applications.
36
+
37
+ ### **Key Features:**
38
+
39
+ 1. **Math-Optimized Capabilities:**
40
+ The model is designed to handle complex mathematical problems, step-by-step calculations, and reasoning tasks.
41
+
42
+ 2. **Instruction-Tuned:**
43
+ Fine-tuned for better adherence to structured queries and task-oriented prompts, enabling clear and concise outputs.
44
+
45
+ 3. **Large Vocabulary:**
46
+ Equipped with an extensive tokenizer configuration and custom tokens to ensure precise mathematical notation support.
47
+
48
+ ### **Training Details:**
49
+ - **Base Model:** [Qwen/Qwen2.5-7B-Instruct](#)
50
+ - **Dataset:** Trained on **Math-IIO-68K-Mini**, a curated dataset with 68.8k high-quality examples focusing on mathematical instructions, equations, and logic-based queries.
51
+
52
+ ### **Capabilities:**
53
+ - **Problem-Solving:** Solves mathematical problems ranging from basic arithmetic to advanced calculus and linear algebra.
54
+ - **Educational Use:** Explains solutions step-by-step, making it a valuable teaching assistant.
55
+ - **Analysis & Reasoning:** Handles logical reasoning tasks and computational queries effectively.
56
+
57
+ ### **How to Use:**
58
+ 1. Download all model files, ensuring the PyTorch weights and tokenizer configurations are included.
59
+ 2. Load the model in your Python environment using frameworks like PyTorch or Hugging Face Transformers.
60
+ 3. Use the provided configurations (`config.json` and `generation_config.json`) for optimal inference.
61
+
62
+ # Run with Ollama [ Ollama Run ]
63
+
64
+ ## Overview
65
+
66
+ 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.
67
+
68
+ ## Table of Contents
69
+
70
+ - [Download and Install Ollama](#download-and-install-ollama)
71
+ - [Steps to Run GGUF Models](#steps-to-run-gguf-models)
72
+ - [1. Create the Model File](#1-create-the-model-file)
73
+ - [2. Add the Template Command](#2-add-the-template-command)
74
+ - [3. Create and Patch the Model](#3-create-and-patch-the-model)
75
+ - [Running the Model](#running-the-model)
76
+ - [Sample Usage](#sample-usage)
77
+
78
+ ## Download and Install Ollama🦙
79
+
80
+ To get started, download Ollama from [https://ollama.com/download](https://ollama.com/download) and install it on your Windows or Mac system.
81
+
82
+ ## Steps to Run GGUF Models
83
+
84
+ ### 1. Create the Model File
85
+ First, create a model file and name it appropriately. For example, you can name your model file `metallama`.
86
+
87
+ ### 2. Add the Template Command
88
+ In your model file, include a `FROM` line that specifies the base model file you want to use. For instance:
89
+
90
+ ```bash
91
+ FROM Llama-3.2-1B.F16.gguf
92
+ ```
93
+
94
+ Ensure that the model file is in the same directory as your script.
95
+
96
+ ### 3. Create and Patch the Model
97
+ Open your terminal and run the following command to create and patch your model:
98
+
99
+ ```bash
100
+ ollama create metallama -f ./metallama
101
+ ```
102
+
103
+ Once the process is successful, you will see a confirmation message.
104
+
105
+ To verify that the model was created successfully, you can list all models with:
106
+
107
+ ```bash
108
+ ollama list
109
+ ```
110
+
111
+ Make sure that `metallama` appears in the list of models.
112
+
113
+ ---
114
+
115
+ ## Running the Model
116
+
117
+ To run your newly created model, use the following command in your terminal:
118
+
119
+ ```bash
120
+ ollama run metallama
121
+ ```
122
+
123
+ ### Sample Usage / Test
124
+
125
+ In the command prompt, you can execute:
126
+
127
+ ```bash
128
+ D:\>ollama run metallama
129
+ ```
130
+
131
+ You can interact with the model like this:
132
+
133
+ ```plaintext
134
+ >>> write a mini passage about space x
135
+ Space X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration.
136
+ With its ambitious goals to make humanity a multi-planetary species and establish a sustainable human presence in
137
+ the cosmos, Space X has become a leading player in the industry. The company's spacecraft, like the Falcon 9, have
138
+ demonstrated remarkable capabilities, allowing for the transport of crews and cargo into space with unprecedented
139
+ efficiency. As technology continues to advance, the possibility of establishing permanent colonies on Mars becomes
140
+ increasingly feasible, thanks in part to the success of reusable rockets that can launch multiple times without
141
+ sustaining significant damage. The journey towards becoming a multi-planetary species is underway, and Space X
142
+ plays a pivotal role in pushing the boundaries of human exploration and settlement.
143
+ ```
144
+
145
+ ---
146
+ ![test.png](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/yyzKLcIyKjqzqbneZtXiX.png)
147
+
148
+ ## Conclusion
149
+
150
+ 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.
151
+
152
+
153
+ - 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.