munish0838 commited on
Commit
008a184
1 Parent(s): 52fbbda

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +181 -0
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: creativeml-openrail-m
5
+ datasets:
6
+ - HuggingFaceTB/Magpie-Pro-300K-Filtered-H4
7
+ language:
8
+ - en
9
+ base_model:
10
+ - meta-llama/Llama-3.2-3B-Instruct
11
+ pipeline_tag: text-generation
12
+ library_name: transformers
13
+ tags:
14
+ - safetensors
15
+ - Magpie
16
+ - Llama
17
+ - Ollama
18
+ - Llama-Cpp
19
+
20
+ ---
21
+
22
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
23
+
24
+
25
+ # QuantFactory/Llama-Magpie-3.2-3B-Instruct-GGUF
26
+ This is quantized version of [prithivMLmods/Llama-Magpie-3.2-3B-Instruct](https://huggingface.co/prithivMLmods/Llama-Magpie-3.2-3B-Instruct) created using llama.cpp
27
+
28
+ # Original Model Card
29
+
30
+
31
+ ## Llama-Magpie-3.2-3B-Instruct Model Files
32
+
33
+ | File Name [ Uploaded Files ] | Size | Description | Upload Status |
34
+ |------------------------------------|------------|-------------------------------------------------|----------------|
35
+ | `.gitattributes` | 1.57 kB | Git attributes configuration file | Uploaded |
36
+ | `README.md` | 269 Bytes | Updated README file | Uploaded |
37
+ | `config.json` | 1.04 kB | Model configuration file | Uploaded |
38
+ | `generation_config.json` | 248 Bytes | Generation-specific configuration file | Uploaded |
39
+ | `pytorch_model-00001-of-00002.bin` | 4.97 GB | Part 1 of the PyTorch model weights | Uploaded (LFS) |
40
+ | `pytorch_model-00002-of-00002.bin` | 1.46 GB | Part 2 of the PyTorch model weights | Uploaded (LFS) |
41
+ | `pytorch_model.bin.index.json` | 21.2 kB | Index for PyTorch model weights | Uploaded |
42
+ | `special_tokens_map.json` | 477 Bytes | Mapping of special tokens | Uploaded |
43
+ | `tokenizer.json` | 17.2 MB | Tokenizer configuration | Uploaded (LFS) |
44
+ | `tokenizer_config.json` | 57.4 kB | Additional tokenizer settings | Uploaded |
45
+
46
+ | Model Type | Size | Context Length | Link |
47
+ |------------|------|----------------|------|
48
+ | GGUF | 3B | - | [🤗 Llama-Magpie-3.2-3B-Instruct-GGUF](https://huggingface.co/prithivMLmods/Llama-Magpie-3.2-3B-Instruct-GGUF) |
49
+
50
+ ### **Llama-Magpie-3.2-3B-Instruct**
51
+
52
+ The **Llama-Magpie-3.2-3B-Instruct** model is a powerful instruction-tuned language model with 3 billion parameters. It is built on the robust **Llama-3.2-3B** architecture and fine-tuned for diverse text generation tasks using the **Magpie-Pro-300K-Filtered-H4** dataset. This model is designed to perform well across a range of instruction-following and conversational scenarios.
53
+
54
+ ---
55
+
56
+ ### **Key Features:**
57
+
58
+ 1. **Instruction-Tuned Precision**
59
+ Specifically optimized to handle structured tasks and open-ended instructions effectively.
60
+
61
+ 2. **Enhanced Context Handling**
62
+ With 3B parameters, the model is capable of generating coherent and contextually relevant outputs for long and complex prompts.
63
+
64
+ 3. **Wide Applicability**
65
+ Suitable for applications such as content creation, conversational AI, and advanced problem-solving.
66
+
67
+ ---
68
+
69
+ ### **Training Details:**
70
+ - **Base Model**: [meta-llama/Llama-3.2-3B-Instruct](#)
71
+ - **Dataset**: Trained on the **Magpie-Pro-300K-Filtered-H4** dataset, which includes 300k examples filtered for high-quality instruction-following tasks.
72
+
73
+ ---
74
+
75
+ ### **Intended Use Cases:**
76
+ - **Text Generation**: Create summaries, stories, and other forms of text content.
77
+ - **Conversational AI**: Enhance chatbot interactions with human-like, contextually aware dialogue.
78
+ - **Instruction Following**: Execute complex tasks by following structured prompts.
79
+
80
+ ---
81
+
82
+ ### **How to Use:**
83
+ 1. Download the model files and set up the necessary dependencies (PyTorch).
84
+ 2. Load the model using the configuration files and tokenizer settings provided.
85
+ 3. Deploy the model for inference using Hugging Face, serverless APIs, or local setups.
86
+
87
+ ---
88
+
89
+ The **Llama-Magpie-3.2-3B-Instruct** model is a versatile and efficient solution for a wide range of NLP applications, offering a balance between scalability and performance.
90
+
91
+ # Run with Ollama [ Ollama Run ]
92
+
93
+ ## Overview
94
+
95
+ 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.
96
+
97
+ ## Table of Contents
98
+
99
+ - [Download and Install Ollama](#download-and-install-ollama)
100
+ - [Steps to Run GGUF Models](#steps-to-run-gguf-models)
101
+ - [1. Create the Model File](#1-create-the-model-file)
102
+ - [2. Add the Template Command](#2-add-the-template-command)
103
+ - [3. Create and Patch the Model](#3-create-and-patch-the-model)
104
+ - [Running the Model](#running-the-model)
105
+ - [Sample Usage](#sample-usage)
106
+
107
+ ## Download and Install Ollama🦙
108
+
109
+ To get started, download Ollama from [https://ollama.com/download](https://ollama.com/download) and install it on your Windows or Mac system.
110
+
111
+ ## Steps to Run GGUF Models
112
+
113
+ ### 1. Create the Model File
114
+ First, create a model file and name it appropriately. For example, you can name your model file `metallama`.
115
+
116
+ ### 2. Add the Template Command
117
+ In your model file, include a `FROM` line that specifies the base model file you want to use. For instance:
118
+
119
+ ```bash
120
+ FROM Llama-3.2-1B.F16.gguf
121
+ ```
122
+
123
+ Ensure that the model file is in the same directory as your script.
124
+
125
+ ### 3. Create and Patch the Model
126
+ Open your terminal and run the following command to create and patch your model:
127
+
128
+ ```bash
129
+ ollama create metallama -f ./metallama
130
+ ```
131
+
132
+ Once the process is successful, you will see a confirmation message.
133
+
134
+ To verify that the model was created successfully, you can list all models with:
135
+
136
+ ```bash
137
+ ollama list
138
+ ```
139
+
140
+ Make sure that `metallama` appears in the list of models.
141
+
142
+ ---
143
+
144
+ ## Running the Model
145
+
146
+ To run your newly created model, use the following command in your terminal:
147
+
148
+ ```bash
149
+ ollama run metallama
150
+ ```
151
+
152
+ ### Sample Usage / Test
153
+
154
+ In the command prompt, you can execute:
155
+
156
+ ```bash
157
+ D:\>ollama run metallama
158
+ ```
159
+
160
+ You can interact with the model like this:
161
+
162
+ ```plaintext
163
+ >>> write a mini passage about space x
164
+ Space X, the private aerospace company founded by Elon Musk, is revolutionizing the field of space exploration.
165
+ With its ambitious goals to make humanity a multi-planetary species and establish a sustainable human presence in
166
+ the cosmos, Space X has become a leading player in the industry. The company's spacecraft, like the Falcon 9, have
167
+ demonstrated remarkable capabilities, allowing for the transport of crews and cargo into space with unprecedented
168
+ efficiency. As technology continues to advance, the possibility of establishing permanent colonies on Mars becomes
169
+ increasingly feasible, thanks in part to the success of reusable rockets that can launch multiple times without
170
+ sustaining significant damage. The journey towards becoming a multi-planetary species is underway, and Space X
171
+ plays a pivotal role in pushing the boundaries of human exploration and settlement.
172
+ ```
173
+
174
+ ---
175
+
176
+ ## Conclusion
177
+
178
+ 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.
179
+
180
+
181
+ - 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.