DiabeloDEV commited on
Commit
fea165d
·
verified ·
1 Parent(s): 79c0b70

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. assets/css/styles.css +330 -0
  2. assets/js/script.js +1 -0
  3. index.html +352 -19
assets/css/styles.css ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ :root {
8
+ --primary-color: #4f46e5;
9
+ --primary-dark: #4338ca;
10
+ --secondary-color: #10b981;
11
+ --bg-dark: #111827;
12
+ --bg-light: #f9fafb;
13
+ --text-dark: #111827;
14
+ --text-light: #6b7280;
15
+ --border-color: #e5e7eb;
16
+ --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
17
+ --card-hover-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
18
+ }
19
+
20
+ body {
21
+ font-family: 'Inter', sans-serif;
22
+ line-height: 1.6;
23
+ color: var(--text-dark);
24
+ background: var(--bg-light);
25
+ }
26
+
27
+ .container {
28
+ max-width: 1200px;
29
+ margin: 0 auto;
30
+ padding: 0 20px;
31
+ }
32
+
33
+ /* Header */
34
+ .header {
35
+ background: white;
36
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
37
+ position: sticky;
38
+ top: 0;
39
+ z-index: 100;
40
+ }
41
+
42
+ .nav {
43
+ display: flex;
44
+ justify-content: space-between;
45
+ align-items: center;
46
+ padding: 1rem 2rem;
47
+ }
48
+
49
+ .nav-brand h1 {
50
+ color: var(--primary-color);
51
+ font-size: 1.5rem;
52
+ font-weight: 700;
53
+ }
54
+
55
+ .nav-menu {
56
+ display: flex;
57
+ gap: 2rem;
58
+ }
59
+
60
+ .nav-menu a {
61
+ color: var(--text-dark);
62
+ text-decoration: none;
63
+ font-weight: 500;
64
+ transition: color 0.3s;
65
+ }
66
+
67
+ .nav-menu a:hover {
68
+ color: var(--primary-color);
69
+ }
70
+
71
+ .mobile-menu-toggle {
72
+ display: none;
73
+ background: none;
74
+ border: none;
75
+ font-size: 1.5rem;
76
+ cursor: pointer;
77
+ }
78
+
79
+ /* Hero Section */
80
+ .hero {
81
+ background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
82
+ color: white;
83
+ padding: 6rem 0;
84
+ text-align: center;
85
+ }
86
+
87
+ .hero-title {
88
+ font-size: 3.5rem;
89
+ font-weight: 700;
90
+ margin-bottom: 1rem;
91
+ }
92
+
93
+ .hero-subtitle {
94
+ font-size: 1.25rem;
95
+ margin-bottom: 2rem;
96
+ opacity: 0.9;
97
+ }
98
+
99
+ .hero-cta {
100
+ display: flex;
101
+ gap: 1rem;
102
+ justify-content: center;
103
+ flex-wrap: wrap;
104
+ }
105
+
106
+ /* Buttons */
107
+ .btn {
108
+ padding: 0.75rem 1.5rem;
109
+ border-radius: 0.5rem;
110
+ text-decoration: none;
111
+ font-weight: 600;
112
+ transition: all 0.3s;
113
+ display: inline-block;
114
+ cursor: pointer;
115
+ border: none;
116
+ }
117
+
118
+ .btn-primary {
119
+ background: white;
120
+ color: var(--primary-color);
121
+ }
122
+
123
+ .btn-primary:hover {
124
+ transform: translateY(-2px);
125
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
126
+ }
127
+
128
+ .btn-secondary {
129
+ background: transparent;
130
+ color: white;
131
+ border: 2px solid white;
132
+ }
133
+
134
+ .btn-secondary:hover {
135
+ background: white;
136
+ color: var(--primary-color);
137
+ }
138
+
139
+ .btn-large {
140
+ padding: 1rem 2rem;
141
+ font-size: 1.1rem;
142
+ }
143
+
144
+ /* Features Section */
145
+ .features {
146
+ padding: 5rem 0;
147
+ }
148
+
149
+ .features h2 {
150
+ text-align: center;
151
+ font-size: 2.5rem;
152
+ margin-bottom: 3rem;
153
+ color: var(--text-dark);
154
+ }
155
+
156
+ .features-grid {
157
+ display: grid;
158
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
159
+ gap: 2rem;
160
+ }
161
+
162
+ .feature-card {
163
+ background: white;
164
+ padding: 2rem;
165
+ border-radius: 1rem;
166
+ box-shadow: var(--card-shadow);
167
+ text-align: center;
168
+ transition: transform 0.3s, box-shadow 0.3s;
169
+ }
170
+
171
+ .feature-card:hover {
172
+ transform: translateY(-5px);
173
+ box-shadow: var(--card-hover-shadow);
174
+ }
175
+
176
+ .feature-icon {
177
+ font-size: 3rem;
178
+ margin-bottom: 1rem;
179
+ }
180
+
181
+ .feature-card h3 {
182
+ font-size: 1.5rem;
183
+ margin-bottom: 1rem;
184
+ color: var(--text-dark);
185
+ }
186
+
187
+ .feature-card p {
188
+ color: var(--text-light);
189
+ }
190
+
191
+ /* Sections */
192
+ .section {
193
+ padding: 5rem 0;
194
+ }
195
+
196
+ .section-dark {
197
+ background: var(--bg-dark);
198
+ color: white;
199
+ }
200
+
201
+ .section h2 {
202
+ text-align: center;
203
+ font-size: 2.5rem;
204
+ margin-bottom: 3rem;
205
+ }
206
+
207
+ .section-dark h2 {
208
+ color: white;
209
+ }
210
+
211
+ /* Requirements */
212
+ .requirements {
213
+ display: grid;
214
+ grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
215
+ gap: 2rem;
216
+ }
217
+
218
+ .requirement-item {
219
+ background: white;
220
+ padding: 2rem;
221
+ border-radius: 1rem;
222
+ box-shadow: var(--card-shadow);
223
+ }
224
+
225
+ .section-dark .requirement-item {
226
+ background: rgba(255, 255, 255, 0.1);
227
+ backdrop-filter: blur(10px);
228
+ }
229
+
230
+ .requirement-item h3 {
231
+ font-size: 1.25rem;
232
+ margin-bottom: 1rem;
233
+ color: var(--primary-color);
234
+ }
235
+
236
+ .requirement-item ul {
237
+ list-style: none;
238
+ padding-left: 0;
239
+ }
240
+
241
+ .requirement-item li {
242
+ padding: 0.5rem 0;
243
+ padding-left: 1.5rem;
244
+ position: relative;
245
+ }
246
+
247
+ .requirement-item li:before {
248
+ content: "✓";
249
+ position: absolute;
250
+ left: 0;
251
+ color: var(--secondary-color);
252
+ font-weight: bold;
253
+ }
254
+
255
+ /* Steps */
256
+ .steps {
257
+ max-width: 800px;
258
+ margin: 0 auto;
259
+ }
260
+
261
+ .step {
262
+ display: flex;
263
+ gap: 2rem;
264
+ margin-bottom: 3rem;
265
+ align-items: flex-start;
266
+ }
267
+
268
+ .step-number {
269
+ background: var(--primary-color);
270
+ color: white;
271
+ width: 50px;
272
+ height: 50px;
273
+ border-radius: 50%;
274
+ display: flex;
275
+ align-items: center;
276
+ justify-content: center;
277
+ font-size: 1.5rem;
278
+ font-weight: bold;
279
+ flex-shrink: 0;
280
+ }
281
+
282
+ .step-content {
283
+ flex: 1;
284
+ }
285
+
286
+ .step-content h3 {
287
+ font-size: 1.5rem;
288
+ margin-bottom: 1rem;
289
+ }
290
+
291
+ /* Code Blocks */
292
+ .code-block {
293
+ position: relative;
294
+ background: #1e293b;
295
+ color: #e2e8f0;
296
+ padding: 1.5rem;
297
+ border-radius: 0.5rem;
298
+ margin: 1rem 0;
299
+ overflow-x: auto;
300
+ }
301
+
302
+ .code-block pre {
303
+ margin: 0;
304
+ font-family: 'Courier New', monospace;
305
+ font-size: 0.9rem;
306
+ line-height: 1.5;
307
+ }
308
+
309
+ .copy-btn {
310
+ position: absolute;
311
+ top: 0.5rem;
312
+ right: 0.5rem;
313
+ background: var(--primary-color);
314
+ color: white;
315
+ border: none;
316
+ padding: 0.5rem 1rem;
317
+ border-radius: 0.25rem;
318
+ cursor: pointer;
319
+ font-size: 0.875rem;
320
+ transition: background 0.3s;
321
+ }
322
+
323
+ .copy-btn:hover {
324
+ background: var(--primary-dark);
325
+ }
326
+
327
+ /* Tabs */
328
+ .config-tabs {
329
+ display: flex;
330
+ gap: 1rem;
assets/js/script.js ADDED
@@ -0,0 +1 @@
 
 
1
+ // generated stub
index.html CHANGED
@@ -1,19 +1,352 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="pl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Poradnik: Jak uruchomić GLM-4.6 - Kompletny przewodnik</title>
7
+ <meta name="description" content="Kompletny poradnik krok po kroku jak uruchomić model AI GLM-4.6. Instalacja, konfiguracja i pierwsze kroki.">
8
+ <meta name="keywords" content="GLM-4.6, AI, sztuczna inteligencja, model językowy, poradnik, tutorial">
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
12
+ <link rel="stylesheet" href="assets/css/styles.css">
13
+ </head>
14
+ <body>
15
+ <header class="header">
16
+ <nav class="nav">
17
+ <div class="nav-brand">
18
+ <h1>GLM-4.6 Guide</h1>
19
+ </div>
20
+ <div class="nav-menu">
21
+ <a href="#wymagania">Wymagania</a>
22
+ <a href="#instalacja">Instalacja</a>
23
+ <a href="#konfiguracja">Konfiguracja</a>
24
+ <a href="#przyklady">Przykłady</a>
25
+ <a href="#faq">FAQ</a>
26
+ </div>
27
+ <button class="mobile-menu-toggle">☰</button>
28
+ </nav>
29
+ </header>
30
+
31
+ <main>
32
+ <section class="hero">
33
+ <div class="container">
34
+ <h1 class="hero-title">Poradnik: Jak uruchomić GLM-4.6</h1>
35
+ <p class="hero-subtitle">Kompletny przewodnik krok po kroku do instalacji i konfiguracji modelu AI GLM-4.6</p>
36
+ <div class="hero-cta">
37
+ <a href="#instalacja" class="btn btn-primary">Rozpocznij teraz</a>
38
+ <a href="#przyklady" class="btn btn-secondary">Zobacz przykłady</a>
39
+ </div>
40
+ </div>
41
+ </section>
42
+
43
+ <section class="features">
44
+ <div class="container">
45
+ <h2>Dlaczego GLM-4.6?</h2>
46
+ <div class="features-grid">
47
+ <div class="feature-card">
48
+ <div class="feature-icon">🚀</div>
49
+ <h3>Wydajność</h3>
50
+ <p>Najnowszy model z niezwykłą szybkością przetwarzania i generowania odpowiedzi</p>
51
+ </div>
52
+ <div class="feature-card">
53
+ <div class="feature-icon">🎯</div>
54
+ <h3>Precyzja</h3>
55
+ <p>Zaawansowane zrozumienie kontekstu i naturalnego języka</p>
56
+ </div>
57
+ <div class="feature-card">
58
+ <div class="feature-icon">🔧</div>
59
+ <h3>Elastyczność</h3>
60
+ <p>Łatwa integracja z różnymi platformami i aplikacjami</p>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </section>
65
+
66
+ <section id="wymagania" class="section">
67
+ <div class="container">
68
+ <h2>Wymagania systemowe</h2>
69
+ <div class="requirements">
70
+ <div class="requirement-item">
71
+ <h3>🖥️ Sprzęt</h3>
72
+ <ul>
73
+ <li>Procesor: Intel i7 lub AMD Ryzen 7 lub nowszy</li>
74
+ <li>Pamięć RAM: Minimum 16GB (zalecane 32GB)</li>
75
+ <li>Karta graficzna: NVIDIA RTX 3060 lub nowszy (z 8GB VRAM)</li>
76
+ <li>Wolna przestrzeń dyskowa: Minimum 50GB</li>
77
+ </ul>
78
+ </div>
79
+ <div class="requirement-item">
80
+ <h3>💻 Oprogramowanie</h3>
81
+ <ul>
82
+ <li>Python 3.8 lub nowszy</li>
83
+ <li>pip (menedżer pakietów Python)</li>
84
+ <li>Git</li>
85
+ <li>Virtualenv (zalecane)</li>
86
+ </ul>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </section>
91
+
92
+ <section id="instalacja" class="section section-dark">
93
+ <div class="container">
94
+ <h2>Instalacja krok po kroku</h2>
95
+ <div class="steps">
96
+ <div class="step">
97
+ <div class="step-number">1</div>
98
+ <div class="step-content">
99
+ <h3>Przygotowanie środowiska</h3>
100
+ <div class="code-block">
101
+ <pre><code># Utwórz wirtualne środowisko
102
+ python -m venv glm46_env
103
+
104
+ # Aktywuj środowisko (Windows)
105
+ glm46_env\Scripts\activate
106
+
107
+ # Aktywuj środowisko (Linux/macOS)
108
+ source glm46_env/bin/activate</code></pre>
109
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <div class="step">
115
+ <div class="step-number">2</div>
116
+ <div class="step-content">
117
+ <h3>Instalacja zależności</h3>
118
+ <div class="code-block">
119
+ <pre><code># Zainstaluj PyTorch z obsługą CUDA
120
+ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
121
+
122
+ # Zainstaluj transformers i inne zależności
123
+ pip install transformers>=4.36.0
124
+ pip install accelerate
125
+ pip install sentencepiece
126
+ pip install protobuf
127
+ pip install numpy
128
+ pip install pandas</code></pre>
129
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
130
+ </div>
131
+ </div>
132
+ </div>
133
+
134
+ <div class="step">
135
+ <div class="step-number">3</div>
136
+ <div class="step-content">
137
+ <h3>Pobranie modelu</h3>
138
+ <div class="code-block">
139
+ <pre><code>from transformers import AutoModel, AutoTokenizer
140
+
141
+ # Pobierz model i tokenizer
142
+ tokenizer = AutoTokenizer.from_pretrained("THUDM/glm-4-9b-chat", trust_remote_code=True)
143
+ model = AutoModel.from_pretrained(
144
+ "THUDM/glm-4-9b-chat",
145
+ trust_remote_code=True,
146
+ device_map="auto"
147
+ )</code></pre>
148
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
149
+ </div>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </section>
155
+
156
+ <section id="konfiguracja" class="section">
157
+ <div class="container">
158
+ <h2>Konfiguracja</h2>
159
+ <div class="config-tabs">
160
+ <button class="tab-btn active" onclick="switchTab('basic')">Podstawowa</button>
161
+ <button class="tab-btn" onclick="switchTab('advanced')">Zaawansowana</button>
162
+ <button class="tab-btn" onclick="switchTab('api')">API Server</button>
163
+ </div>
164
+
165
+ <div class="tab-content active" id="basic-tab">
166
+ <h3>Podstawowa konfiguracja</h3>
167
+ <div class="code-block">
168
+ <pre><code># Proste użycie modelu
169
+ response, history = model.chat(
170
+ tokenizer,
171
+ "Witaj! Przedstaw się proszę.",
172
+ history=[]
173
+ )
174
+
175
+ print(response)</code></pre>
176
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
177
+ </div>
178
+ </div>
179
+
180
+ <div class="tab-content" id="advanced-tab">
181
+ <h3>Zaawansowana konfiguracja</h3>
182
+ <div class="code-block">
183
+ <pre><code># Konfiguracja parametrów generacji
184
+ model_kwargs = {
185
+ "max_length": 2048,
186
+ "temperature": 0.7,
187
+ "top_p": 0.9,
188
+ "repetition_penalty": 1.1,
189
+ "do_sample": True
190
+ }
191
+
192
+ response, history = model.chat(
193
+ tokenizer,
194
+ "Napisz poetycki opis zachodu słońca.",
195
+ history=[],
196
+ **model_kwargs
197
+ )</code></pre>
198
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
199
+ </div>
200
+ </div>
201
+
202
+ <div class="tab-content" id="api-tab">
203
+ <h3>Serwer API</h3>
204
+ <div class="code-block">
205
+ <pre><code># Uruchomienie serwera API
206
+ from flask import Flask, request, jsonify
207
+ import threading
208
+
209
+ app = Flask(__name__)
210
+
211
+ @app.route('/chat', methods=['POST'])
212
+ def chat():
213
+ data = request.json
214
+ message = data.get('message', '')
215
+
216
+ response, _ = model.chat(
217
+ tokenizer,
218
+ message,
219
+ history=[]
220
+ )
221
+
222
+ return jsonify({"response": response})
223
+
224
+ if __name__ == '__main__':
225
+ app.run(host='0.0.0.0', port=5000)</code></pre>
226
+ <button class="copy-btn" onclick="copyCode(this)">Kopiuj</button>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ </section>
231
+
232
+ <section id="przyklady" class="section section-dark">
233
+ <div class="container">
234
+ <h2>Przykłady użycia</h2>
235
+ <div class="examples-grid">
236
+ <div class="example-card">
237
+ <h3>📝 Generowanie tekstu</h3>
238
+ <p>Tworzenie artykułów, opisów produktów, treści marketingowych</p>
239
+ <button class="example-btn" onclick="showExample('text')">Zobacz kod</button>
240
+ </div>
241
+ <div class="example-card">
242
+ <h3>💬 Asystent konwersacyjny</h3>
243
+ <p>Obsługa klienta, pomoc techniczna, chatbot</p>
244
+ <button class="example-btn" onclick="showExample('chat')">Zobacz kod</button>
245
+ </div>
246
+ <div class="example-card">
247
+ <h3>🔍 Analiza tekstu</h3>
248
+ <p>Ekstrakcja informacji, podsumowania, analiza sentymentu</p>
249
+ <button class="example-btn" onclick="showExample('analysis')">Zobacz kod</button>
250
+ </div>
251
+ </div>
252
+ <div class="example-code" id="example-code" style="display: none;">
253
+ <div class="code-block">
254
+ <pre id="example-content"></pre>
255
+ <button class="copy-btn" onclick="copyExampleCode()">Kopiuj</button>
256
+ </div>
257
+ </div>
258
+ </div>
259
+ </section>
260
+
261
+ <section id="faq" class="section">
262
+ <div class="container">
263
+ <h2>Często zadawane pytania</h2>
264
+ <div class="faq">
265
+ <div class="faq-item">
266
+ <button class="faq-question" onclick="toggleFAQ(this)">
267
+ <span>Czy GLM-4.6 może działać bez karty graficznej?</span>
268
+ <span class="faq-toggle">+</span>
269
+ </button>
270
+ <div class="faq-answer">
271
+ <p>Tak, model może działać na CPU, ale wydajność będzie znacznie niższa. Czas odpowiedzi może wynosić od kilkudziesięciu sekund do kilku minut w zależności od sprzętu.</p>
272
+ </div>
273
+ </div>
274
+ <div class="faq-item">
275
+ <button class="faq-question" onclick="toggleFAQ(this)">
276
+ <span>Ile pamięci RAM potrzebuje model?</span>
277
+ <span class="faq-toggle">+</span>
278
+ </button>
279
+ <div class="faq-answer">
280
+ <p>Minimum 16GB RAM, ale zalecane jest 32GB dla płynnego działania. Na mniejszej ilości pamięci może być potrzebne użycie trybu 8-bitowej precyzji.</p>
281
+ </div>
282
+ </div>
283
+ <div class="faq-item">
284
+ <button class="faq-question" onclick="toggleFAQ(this)">
285
+ <span>Czy model obsługuje język polski?</span>
286
+ <span class="faq-toggle">+</span>
287
+ </button>
288
+ <div class="faq-answer">
289
+ <p>Tak, GLM-4.6 dobrze radzi sobie z językiem polskim. Model został trenowany na wielojęzycznych danych, w tym na polskich tekstach.</p>
290
+ </div>
291
+ </div>
292
+ <div class="faq-item">
293
+ <button class="faq-question" onclick="toggleFAQ(this)">
294
+ <span>Jak zoptymalizować wydajność modelu?</span>
295
+ <span class="faq-toggle">+</span>
296
+ </button>
297
+ <div class="faq-answer">
298
+ <p>Można użyć kwantyzacji (4-bit lub 8-bit), batch processing, oraz optymalizacji pamięci poprzez gradient checkpointing.</p>
299
+ </div>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ </section>
304
+
305
+ <section class="section section-dark">
306
+ <div class="container">
307
+ <div class="cta-box">
308
+ <h2>Gotowy do rozpoczęcia?</h2>
309
+ <p>Postępuj zgodnie z naszym przewodnikiem i uruchom GLM-4.6 już dziś!</p>
310
+ <div class="cta-buttons">
311
+ <a href="#instalacja" class="btn btn-primary btn-large">Zacznij instalację</a>
312
+ <a href="https://github.com/THUDM/GLM-4" target="_blank" class="btn btn-secondary btn-large">Dokumentacja oficjalna</a>
313
+ </div>
314
+ </div>
315
+ </div>
316
+ </section>
317
+ </main>
318
+
319
+ <footer class="footer">
320
+ <div class="container">
321
+ <div class="footer-content">
322
+ <div class="footer-section">
323
+ <h3>GLM-4.6 Guide</h3>
324
+ <p>Kompletny przewodnik po instalacji i konfiguracji modelu GLM-4.6</p>
325
+ </div>
326
+ <div class="footer-section">
327
+ <h3>Linki</h3>
328
+ <ul>
329
+ <li><a href="#wymagania">Wymagania</a></li>
330
+ <li><a href="#instalacja">Instalacja</a></li>
331
+ <li><a href="#konfiguracja">Konfiguracja</a></li>
332
+ <li><a href="#przyklady">Przykłady</a></li>
333
+ </ul>
334
+ </div>
335
+ <div class="footer-section">
336
+ <h3>Zasoby</h3>
337
+ <ul>
338
+ <li><a href="https://github.com/THUDM/GLM-4" target="_blank">GitHub</a></li>
339
+ <li><a href="https://huggingface.co/THUDM" target="_blank">Hugging Face</a></li>
340
+ <li><a href="https://open.bigmodel.cn/" target="_blank">Zhipu AI</a></li>
341
+ </ul>
342
+ </div>
343
+ </div>
344
+ <div class="footer-bottom">
345
+ <p>&copy; 2024 GLM-4.6 Guide. Built with <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank">anycoder</a></p>
346
+ </div>
347
+ </div>
348
+ </footer>
349
+
350
+ <script src="assets/js/script.js"></script>
351
+ </body>
352
+ </html>