TensorVizion commited on
Commit
4c713b4
·
verified ·
1 Parent(s): 586f3b5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +264 -0
README.md CHANGED
@@ -1,3 +1,267 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+
5
+ <!--
6
+ NORTH CODE QUANT - MODEL CARD TEMPLATE
7
+ Designed for GGUF Quantizations
8
+ -->
9
+
10
+ <style>
11
+ :root {
12
+ --nc-bg: #0f1115;
13
+ --nc-card: #161b22;
14
+ --nc-border: #30363d;
15
+ --nc-text-main: #e6edf3;
16
+ --nc-text-muted: #8b949e;
17
+ --nc-accent: #58a6ff;
18
+ --nc-accent-glow: rgba(88, 166, 255, 0.15);
19
+ --nc-code-bg: #0d1117;
20
+ --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
21
+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
22
+ }
23
+
24
+ .nc-container {
25
+ font-family: var(--font-sans);
26
+ color: var(--nc-text-main);
27
+ line-height: 1.6;
28
+ max-width: 900px;
29
+ margin: 0 auto;
30
+ padding: 2rem 1rem;
31
+ background-color: var(--nc-bg);
32
+ }
33
+
34
+ /* Typography & Links */
35
+ .nc-container h1 { font-size: 2.5rem; border-bottom: none; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
36
+ .nc-container h2 { font-size: 1.5rem; margin-top: 2.5rem; border-bottom: 1px solid var(--nc-border); padding-bottom: 0.5rem; }
37
+ .nc-container h3 { font-size: 1.1rem; color: var(--nc-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2rem;}
38
+ .nc-container a { color: var(--nc-accent); text-decoration: none; transition: opacity 0.2s; }
39
+ .nc-container a:hover { text-decoration: underline; }
40
+
41
+ /* Hero Section */
42
+ .nc-hero {
43
+ display: flex;
44
+ align-items: center;
45
+ gap: 1rem;
46
+ margin-bottom: 2rem;
47
+ }
48
+ .nc-badge {
49
+ background: var(--nc-accent-glow);
50
+ color: var(--nc-accent);
51
+ padding: 0.25rem 0.75rem;
52
+ border-radius: 999px;
53
+ font-size: 0.85rem;
54
+ font-weight: 600;
55
+ border: 1px solid rgba(88, 166, 255, 0.3);
56
+ }
57
+
58
+ /* Info Grid */
59
+ .nc-grid {
60
+ display: grid;
61
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
62
+ gap: 1rem;
63
+ margin: 1.5rem 0;
64
+ }
65
+ .nc-stat-card {
66
+ background: var(--nc-card);
67
+ border: 1px solid var(--nc-border);
68
+ border-radius: 8px;
69
+ padding: 1rem;
70
+ }
71
+ .nc-stat-label { font-size: 0.8rem; color: var(--nc-text-muted); display: block; margin-bottom: 0.25rem; }
72
+ .nc-stat-value { font-size: 1.1rem; font-weight: 600; color: var(--nc-text-main); }
73
+
74
+ /* Code Blocks */
75
+ .nc-code-block {
76
+ position: relative;
77
+ background: var(--nc-code-bg);
78
+ border: 1px solid var(--nc-border);
79
+ border-radius: 8px;
80
+ padding: 1rem;
81
+ margin: 1rem 0;
82
+ overflow-x: auto;
83
+ }
84
+ .nc-code-block code {
85
+ font-family: var(--font-mono);
86
+ font-size: 0.9rem;
87
+ color: #c9d1d9;
88
+ white-space: pre;
89
+ }
90
+ .nc-cli-label {
91
+ position: absolute;
92
+ top: 0.5rem;
93
+ right: 0.75rem;
94
+ font-size: 0.7rem;
95
+ color: var(--nc-text-muted);
96
+ text-transform: uppercase;
97
+ letter-spacing: 0.05em;
98
+ pointer-events: none;
99
+ }
100
+
101
+ /* GGUF Table */
102
+ .nc-table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: 8px; border: 1px solid var(--nc-border); }
103
+ table.nc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
104
+ table.nc-table th {
105
+ background: var(--nc-card);
106
+ text-align: left;
107
+ padding: 0.75rem 1rem;
108
+ color: var(--nc-text-muted);
109
+ font-weight: 600;
110
+ border-bottom: 1px solid var(--nc-border);
111
+ }
112
+ table.nc-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--nc-border); }
113
+ table.nc-table tr:last-child td { border-bottom: none; }
114
+ table.nc-table tr:hover td { background: rgba(255,255,255,0.02); }
115
+ .nc-quant-tag {
116
+ font-family: var(--font-mono);
117
+ font-size: 0.8rem;
118
+ background: rgba(255,255,255,0.06);
119
+ padding: 0.15rem 0.4rem;
120
+ border-radius: 4px;
121
+ }
122
+
123
+ /* Disclaimer Box */
124
+ .nc-disclaimer {
125
+ margin-top: 3rem;
126
+ padding: 1rem;
127
+ border-left: 3px solid var(--nc-border);
128
+ color: var(--nc-text-muted);
129
+ font-size: 0.85rem;
130
+ }
131
+
132
+ /* Responsive */
133
+ @media (max-width: 600px) {
134
+ .nc-container h1 { font-size: 1.8rem; }
135
+ .nc-grid { grid-template-columns: 1fr 1fr; }
136
+ }
137
+ </style>
138
+
139
+ <div class="nc-container">
140
+
141
+ <!-- HERO -->
142
+ <div class="nc-hero">
143
+ <h1>North Code Quant</h1>
144
+ <span class="nc-badge">GGUF</span>
145
+ <span class="nc-badge">Code Generation</span>
146
+ </div>
147
+ <p style="color: var(--nc-text-muted); font-size: 1.1rem; margin-top: -1rem;">
148
+ High-performance quantized GGUF builds of Cohere's North Code model.<br>
149
+ Optimized for local inference via llama.cpp, LM Studio, and Ollama.
150
+ </p>
151
+
152
+ <!-- KEY STATS -->
153
+ <div class="nc-grid">
154
+ <div class="nc-stat-card">
155
+ <span class="nc-stat-label">Base Model</span>
156
+ <span class="nc-stat-value">Cohere North Code</span>
157
+ </div>
158
+ <div class="nc-stat-card">
159
+ <span class="nc-stat-label">Architecture</span>
160
+ <span class="nc-stat-value">Cohere / Command-R</span>
161
+ </div>
162
+ <div class="nc-stat-card">
163
+ <span class="nc-stat-label">Context Length</span>
164
+ <span class="nc-stat-value">128K Tokens</span>
165
+ </div>
166
+ <div class="nc-stat-card">
167
+ <span class="nc-stat-label">License</span>
168
+ <span class="nc-stat-value">CC-BY-NC / Custom</span>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- QUICK START -->
173
+ <h2>⚡ Quick Start</h2>
174
+
175
+ <h3>Ollama</h3>
176
+ <div class="nc-code-block">
177
+ <span class="nc-cli-label">CLI</span>
178
+ <code>ollama run north-code-quant</code>
179
+ </div>
180
+
181
+ <h3>LM Studio</h3>
182
+ <p style="color: var(--nc-text-muted); font-size: 0.95rem;">
183
+ Search for <strong>"North Code Quant"</strong> in the LM Studio search bar, select your preferred quantization level from the sidebar, and click Download.
184
+ </p>
185
+
186
+ <h3>llama.cpp</h3>
187
+ <div class="nc-code-block">
188
+ <span class="nc-cli-label">Bash</span>
189
+ <code>./llama-cli -m north-code-quant-Q4_K_M.gguf \
190
+ --ctx-size 8192 \
191
+ --threads $(nproc) \
192
+ --prompt "def fibonacci(n):"</code>
193
+ </div>
194
+
195
+ <!-- AVAILABLE QUANTS -->
196
+ <h2>📦 Available Quants</h2>
197
+ <p style="color: var(--nc-text-muted); margin-bottom: 1rem;">
198
+ Files are sorted by size and quality. <strong>Q4_K_M</strong> is recommended for most users as the best balance of speed and perplexity.
199
+ </p>
200
+
201
+ <div class="nc-table-wrapper">
202
+ <table class="nc-table">
203
+ <thead>
204
+ <tr>
205
+ <th>File Name</th>
206
+ <th>Quant Type</th>
207
+ <th>Size</th>
208
+ <th>Description</th>
209
+ </tr>
210
+ </thead>
211
+ <tbody>
212
+ <!-- UPDATE THESE ROWS WITH YOUR ACTUAL FILES -->
213
+ <tr>
214
+ <td><code>north-code-quant-Q8_0.gguf</code></td>
215
+ <td><span class="nc-quant-tag">Q8_0</span></td>
216
+ <td>-- GB</td>
217
+ <td>Near-lossless. Best quality, higher VRAM/RAM requirement.</td>
218
+ </tr>
219
+ <tr>
220
+ <td><code>north-code-quant-Q6_K.gguf</code></td>
221
+ <td><span class="nc-quant-tag">Q6_K</span></td>
222
+ <td>-- GB</td>
223
+ <td>Very low perplexity loss. Great for critical code tasks.</td>
224
+ </tr>
225
+ <tr style="background: rgba(88, 166, 255, 0.05);">
226
+ <td><code>north-code-quant-Q4_K_M.gguf</code></td>
227
+ <td><span class="nc-quant-tag">Q4_K_M</span></td>
228
+ <td>-- GB</td>
229
+ <td><strong>⭐ Recommended.</strong> Best size/performance ratio.</td>
230
+ </tr>
231
+ <tr>
232
+ <td><code>north-code-quant-Q3_K_M.gguf</code></td>
233
+ <td><span class="nc-quant-tag">Q3_K_M</span></td>
234
+ <td>-- GB</td>
235
+ <td>Lower resource usage. Noticeable quality degradation in complex reasoning.</td>
236
+ </tr>
237
+ <tr>
238
+ <td><code>north-code-quant-IQ4_XS.gguf</code></td>
239
+ <td><span class="nc-quant-tag">IQ4_XS</span></td>
240
+ <td>-- GB</td>
241
+ <td>Importance Matrix quant. Smaller than Q4 with similar quality.</td>
242
+ </tr>
243
+ </tbody>
244
+ </table>
245
+ </div>
246
+
247
+ <!-- MODEL DETAILS -->
248
+ <h2>📝 About This Quantization</h2>
249
+ <p>
250
+ These GGUF files were converted from the official
251
+ <a href="https://huggingface.co/CohereForAI/c4ai-command-r-plus" target="_blank">Cohere North Code</a>
252
+ weights using <code>llama.cpp</code> with importance matrix calibration for optimal token-level precision retention.
253
+ </p>
254
+ <ul style="color: var(--nc-text-muted); padding-left: 1.5rem;">
255
+ <li><strong>Calibration Dataset:</strong> CodeAlpaca + SlimOrca subset</li>
256
+ <li><strong>Imatrix:</strong> Enabled for K-quants (Q3_K through Q6_K)</li>
257
+ <li><strong>Vocab:</strong> Original Cohere tokenizer preserved</li>
258
+ </ul>
259
+
260
+ <!-- DISCLAIMER -->
261
+ <div class="nc-disclaimer">
262
+ <strong>⚠️ Disclaimer:</strong> This is a quantized derivative model. While quants retain most of the base model's capabilities,
263
+ lower-bit quantizations may exhibit degraded performance in edge-case code generation or multilingual tasks.
264
+ Always verify generated code before execution. This model inherits the license terms of the original Cohere North Code model.
265
+ </div>
266
+
267
+ </div>