-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1510 lines (963 loc) · 55.9 KB
/
index.html
File metadata and controls
1510 lines (963 loc) · 55.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Hexo Theme Redefine">
<meta name="author" content="Ikko">
<!-- Completely eliminate flash of wrong theme -->
<script>
(function() {
const THEME_KEY = "REDEFINE-THEME-STATUS";
const DARK = "dark", LIGHT = "light";
// Get preferred theme
function getTheme() {
try {
const saved = localStorage.getItem(THEME_KEY);
if (saved) {
const { isDark } = JSON.parse(saved);
return isDark ? DARK : LIGHT;
}
} catch (e) {}
return matchMedia("(prefers-color-scheme: dark)").matches ? DARK : LIGHT;
}
// Apply theme to document
function applyTheme(theme) {
const isDark = theme === DARK;
const root = document.documentElement;
// Set data attribute for CSS variables
root.setAttribute("data-theme", theme);
// Set classes for compatibility
root.classList.add(theme);
root.classList.remove(isDark ? LIGHT : DARK);
root.style.colorScheme = theme;
}
// Initial application
const theme = getTheme();
applyTheme(theme);
// Listen for system preference changes
matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches }) => {
// Only update if using system preference (no localStorage entry)
if (!localStorage.getItem(THEME_KEY)) {
applyTheme(matches ? DARK : LIGHT);
}
});
// Set body classes once DOM is ready
if (document.readyState !== "loading") {
document.body.classList.add(theme + "-mode");
} else {
document.addEventListener("DOMContentLoaded", () => {
document.body.classList.add(theme + "-mode");
document.body.classList.remove((theme === DARK ? LIGHT : DARK) + "-mode");
});
}
})();
</script>
<!-- Critical CSS to prevent flash -->
<style>
:root[data-theme="dark"] {
--background-color: #202124;
--background-color-transparent: rgba(32, 33, 36, 0.6);
--second-background-color: #2d2e32;
--third-background-color: #34353a;
--third-background-color-transparent: rgba(32, 33, 36, 0.6);
--primary-color: #0066CC;
--first-text-color: #ffffff;
--second-text-color: #eeeeee;
--third-text-color: #bebec6;
--fourth-text-color: #999999;
--default-text-color: #bebec6;
--invert-text-color: #373D3F;
--border-color: rgba(255, 255, 255, 0.08);
--selection-color: #0066CC;
--shadow-color-1: rgba(255, 255, 255, 0.08);
--shadow-color-2: rgba(255, 255, 255, 0.05);
}
:root[data-theme="light"] {
--background-color: #fff;
--background-color-transparent: rgba(255, 255, 255, 0.6);
--second-background-color: #f8f8f8;
--third-background-color: #f2f2f2;
--third-background-color-transparent: rgba(241, 241, 241, 0.6);
--primary-color: #0066CC;
--first-text-color: #16171a;
--second-text-color: #2f3037;
--third-text-color: #5e5e5e;
--fourth-text-color: #eeeeee;
--default-text-color: #373D3F;
--invert-text-color: #bebec6;
--border-color: rgba(0, 0, 0, 0.08);
--selection-color: #0066CC;
--shadow-color-1: rgba(0, 0, 0, 0.08);
--shadow-color-2: rgba(0, 0, 0, 0.05);
}
body {
background-color: var(--background-color);
color: var(--default-text-color);
}
/* Apply body classes as soon as DOM is ready */
:root[data-theme="dark"] body {
background-color: var(--background-color);
color: var(--default-text-color);
}
</style>
<!-- preconnect -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://registry.npmmirror.com" crossorigin>
<!--- Seo Part-->
<link rel="canonical" href="http://ikko-debug.github.io/"/>
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="revisit-after" content="1 days">
<meta name="description" content="Hexo Theme Redefine, Redefine Your Hexo Journey.">
<meta property="og:type" content="website">
<meta property="og:title" content="IKKO">
<meta property="og:url" content="http://ikko-debug.github.io/index.html">
<meta property="og:site_name" content="IKKO">
<meta property="og:description" content="Hexo Theme Redefine, Redefine Your Hexo Journey.">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://ikko-debug.github.io/images/redefine-og.webp">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://ikko-debug.github.io/images/redefine-og.webp">
<!-- Google tag (gtag.js) -->
<script src="https://www.googletagmanager.com/gtag/js?id=G-P5152X2PGJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-P5152X2PGJ');
</script>
<!--- Icon Part-->
<link rel="icon" type="image/png" href="/images/idea.svg" sizes="192x192">
<link rel="apple-touch-icon" sizes="180x180" href="/images/idea.svg">
<meta name="theme-color" content="#A31F34">
<link rel="shortcut icon" href="/images/idea.svg">
<!--- Page Info-->
<title>
IKKO - Redefine Your Hexo Journey.
</title>
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fonts/Chillax/chillax.css">
<!--- Inject Part-->
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/css/build/tailwind.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fonts/GeistMono/geist-mono.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fonts/Geist/geist.css">
<!--- Font Part-->
<script id="hexo-configurations">
window.config = {"hostname":"ikko-debug.github.io","root":"/","language":"en","path":"search.xml"};
window.theme = {"articles":{"style":{"font_size":"16px","line_height":1.5,"image_border_radius":"14px","image_alignment":"center","image_caption":false,"link_icon":true,"delete_mask":false,"title_alignment":"left","headings_top_spacing":{"h1":"3.2rem","h2":"2.4rem","h3":"1.9rem","h4":"1.6rem","h5":"1.4rem","h6":"1.3rem"}},"word_count":{"enable":true,"count":true,"min2read":true},"author_label":{"enable":true,"auto":true,"list":[""]},"code_block":{"copy":true,"style":"mac","highlight_theme":{"light":"github","dark":"vs2015"},"font":{"enable":false,"family":null,"url":null}},"toc":{"enable":true,"max_depth":3,"number":false,"expand":true,"init_open":true},"copyright":{"enable":true,"default":"cc_by_nc_sa"},"lazyload":true,"pangu_js":false,"recommendation":{"enable":false,"title":"推荐阅读","limit":3,"mobile_limit":2,"placeholder":"/images/wallhaven-wqery6-light.webp","skip_dirs":[]}},"colors":{"primary":"#A31F34","secondary":null,"default_mode":"dark"},"global":{"fonts":{"chinese":{"enable":false,"family":null,"url":null},"english":{"enable":false,"family":null,"url":null},"title":{"enable":false,"family":null,"url":null}},"content_max_width":"1000px","sidebar_width":"210px","hover":{"shadow":true,"scale":false},"scroll_progress":{"bar":false,"percentage":true},"website_counter":{"url":"https://cn.vercount.one/js","enable":true,"site_pv":true,"site_uv":true,"post_pv":true},"single_page":true,"preloader":{"enable":false,"custom_message":null},"open_graph":{"enable":true,"image":"/images/redefine-og.webp","description":"Hexo Theme Redefine, Redefine Your Hexo Journey."},"google_analytics":{"enable":true,"id":"G-P5152X2PGJ"}},"home_banner":{"enable":true,"style":"fixed","image":{"light":"/images/light.jpg","dark":"/images/dark.jpg"},"title":"若有恒,何必三更眠五更起 最无益,只怕一日曝十日寒","subtitle":{"text":[],"hitokoto":{"enable":false,"show_author":false,"api":"https://v1.hitokoto.cn"},"typing_speed":100,"backing_speed":80,"starting_delay":500,"backing_delay":1500,"loop":true,"smart_backspace":true},"text_color":{"light":"#fff","dark":"#d1d1b6"},"text_style":{"title_size":"1.5rem","subtitle_size":"1.5rem","line_height":1.2},"custom_font":{"enable":false,"family":null,"url":null},"social_links":{"enable":false,"style":"default","links":{"github":"https://github.com/ikko-debug","instagram":null,"zhihu":null,"twitter":null,"email":null},"qrs":{"weixin":null}}},"plugins":{"feed":{"enable":false},"aplayer":{"enable":false,"type":"fixed","audios":[{"name":null,"artist":null,"url":null,"cover":null,"lrc":null}]},"mermaid":{"enable":false,"version":"11.4.1"}},"version":"2.8.5","navbar":{"auto_hide":false,"color":{"left":"#f78736","right":"#367df7","transparency":35},"width":{"home":"1200px","pages":"1000px"},"links":{"Home":{"path":"/","icon":"fa-regular fa-house"},"Archives":{"path":"/archives","icon":"fa-regular fa-archive"},"FriendLinks":{"icon":"fa-solid fa-link","submenus":{"yebao":"https://danmoliuhen.github.io/","wu-22":"https://wu-22.github.io/","jjb":"https://byjiangjb.github.io/"}},"album":{"icon":"fa-solid fa-image","path":"/masonry/"},"Bookmarks":{"icon":"fa-solid fa-bookmark","path":"/bookmarks/"}},"search":{"enable":true,"preload":true}},"page_templates":{"friends_column":2,"tags_style":"blur"},"home":{"sidebar":{"enable":true,"position":"left","first_item":"menu","announcement":"never","show_on_mobile":true,"links":null},"article_date_format":"auto","excerpt_length":200,"categories":{"enable":true,"limit":3},"tags":{"enable":true,"limit":3}},"footerStart":"2022/8/17 11:45:14"};
window.lang_ago = {"second":"%s seconds ago","minute":"%s minutes ago","hour":"%s hours ago","day":"%s days ago","week":"%s weeks ago","month":"%s months ago","year":"%s years ago"};
window.data = {"masonry":true};
</script>
<!--- Fontawesome Part-->
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fontawesome/fontawesome.min.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fontawesome/brands.min.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fontawesome/solid.min.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/hexo-theme-redefine/2.8.5/files/source/fontawesome/regular.min.css">
<meta name="generator" content="Hexo 6.3.0"><style>mjx-container[jax="SVG"] {
direction: ltr;
}
mjx-container[jax="SVG"] > svg {
overflow: visible;
}
mjx-container[jax="SVG"][display="true"] {
display: block;
text-align: center;
margin: 1em 0;
}
mjx-container[jax="SVG"][justify="left"] {
text-align: left;
}
mjx-container[jax="SVG"][justify="right"] {
text-align: right;
}
g[data-mml-node="merror"] > g {
fill: red;
stroke: red;
}
g[data-mml-node="merror"] > rect[data-background] {
fill: yellow;
stroke: none;
}
g[data-mml-node="mtable"] > line[data-line] {
stroke-width: 70px;
fill: none;
}
g[data-mml-node="mtable"] > rect[data-frame] {
stroke-width: 70px;
fill: none;
}
g[data-mml-node="mtable"] > .mjx-dashed {
stroke-dasharray: 140;
}
g[data-mml-node="mtable"] > .mjx-dotted {
stroke-linecap: round;
stroke-dasharray: 0,140;
}
g[data-mml-node="mtable"] > svg {
overflow: visible;
}
[jax="SVG"] mjx-tool {
display: inline-block;
position: relative;
width: 0;
height: 0;
}
[jax="SVG"] mjx-tool > mjx-tip {
position: absolute;
top: 0;
left: 0;
}
mjx-tool > mjx-tip {
display: inline-block;
padding: .2em;
border: 1px solid #888;
font-size: 70%;
background-color: #F8F8F8;
color: black;
box-shadow: 2px 2px 5px #AAAAAA;
}
g[data-mml-node="maction"][data-toggle] {
cursor: pointer;
}
mjx-status {
display: block;
position: fixed;
left: 1em;
bottom: 1em;
min-width: 25%;
padding: .2em .4em;
border: 1px solid #888;
font-size: 90%;
background-color: #F8F8F8;
color: black;
}
foreignObject[data-mjx-xml] {
font-family: initial;
line-height: normal;
overflow: visible;
}
.MathJax path {
stroke-width: 3;
}
mjx-container[display="true"] {
overflow: auto hidden;
}
mjx-container[display="true"] + br {
display: none;
}
</style></head>
<body>
<div class="progress-bar-container">
<span class="pjax-progress-bar"></span>
<!-- <span class="swup-progress-icon">-->
<!-- <i class="fa-solid fa-circle-notch fa-spin"></i>-->
<!-- </span>-->
</div>
<main class="page-container" id="swup">
<style>
.home-banner-container {
background: none !important;
}
.home-article-item,
.sidebar-links,
.sidebar-content,
a.page-number,
a.extend,
.sidebar-links .links:hover,
.right-bottom-tools,
footer.footer {
background-color: var(--background-color-transparent-80) !important;
}
.right-bottom-tools:hover,
a.page-number:hover,
a.extend:hover {
background-color: var(--primary-color) !important;
}
.site-info,
.home-article-sticky-label {
background-color: var(--background-color-transparent-15) !important;
}
.home-article-sticky-label {
backdrop-filter: none !important;
}
</style>
<div class="home-banner-background transition-fade fixed top-0 left-0 w-screen h-screen scale-125 sm:scale-110 box-border will-change-transform bg-cover">
<img src="/images/light.jpg" alt="home-banner-background" class="w-full h-full object-cover dark:hidden">
<img src="/images/dark.jpg" alt="home-banner-background" class="w-full h-full object-cover hidden dark:block">
</div>
<div class="home-banner-container flex justify-center items-center transition-fade relative">
<div class="content mt-8 flex flex-col justify-center items-center transition-fade-down">
<div class="description flex flex-col justify-center items-center w-screen font-medium text-center"
>
若有恒,何必三更眠五更起 最无益,只怕一日曝十日寒
<p><i id="subtitle"></i></p>
</div>
</div>
<script>
const scrollToMain = ()=> {
console.log('scroll');
const target = document.querySelector('.main-content-container');
target.scrollIntoView({ behavior: 'smooth'});
}
</script>
</div>
<div class="main-content-container flex flex-col justify-between min-h-dvh">
<div class="main-content-header">
<header class="navbar-container px-6 md:px-12">
<div class="navbar-content transition-navbar has-home-banner">
<div class="left">
<a class="logo-image h-8 w-8 sm:w-10 sm:h-10 mr-3" href="/">
<img src="/images/idea.svg" class="w-full h-full rounded-xs">
</a>
<a class="logo-title" href="/">
<h1>
IKKO
</h1>
</a>
</div>
<div class="right">
<!-- PC -->
<div class="desktop">
<ul class="navbar-list">
<li class="navbar-item">
<!-- Menu -->
<a class="active"
href="/"
>
<i class="fa-regular fa-house fa-fw"></i>
HOME
</a>
<!-- Submenu -->
</li>
<li class="navbar-item">
<!-- Menu -->
<a class=""
href="/archives"
>
<i class="fa-regular fa-archive fa-fw"></i>
ARCHIVES
</a>
<!-- Submenu -->
</li>
<li class="navbar-item">
<!-- Menu -->
<a class="has-dropdown"
href="#"
onClick="return false;">
<i class="fa-solid fa-link fa-fw"></i>
FRIENDLINKS
<i class="fa-solid fa-chevron-down fa-fw"></i>
</a>
<!-- Submenu -->
<ul class="sub-menu">
<li>
<a target="_blank" rel="noopener" href="https://danmoliuhen.github.io/">
YEBAO
</a>
</li>
<li>
<a target="_blank" rel="noopener" href="https://wu-22.github.io/">
WU-22
</a>
</li>
<li>
<a target="_blank" rel="noopener" href="https://byjiangjb.github.io/">
JJB
</a>
</li>
</ul>
</li>
<li class="navbar-item">
<!-- Menu -->
<a class=""
href="/masonry/"
>
<i class="fa-solid fa-image fa-fw"></i>
ALBUM
</a>
<!-- Submenu -->
</li>
<li class="navbar-item">
<!-- Menu -->
<a class=""
href="/bookmarks/"
>
<i class="fa-solid fa-bookmark fa-fw"></i>
BOOKMARKS
</a>
<!-- Submenu -->
</li>
<li class="navbar-item search search-popup-trigger">
<i class="fa-solid fa-magnifying-glass"></i>
</li>
</ul>
</div>
<!-- Mobile -->
<div class="mobile">
<div class="icon-item search search-popup-trigger"><i class="fa-solid fa-magnifying-glass"></i>
</div>
<div class="icon-item navbar-bar">
<div class="navbar-bar-middle"></div>
</div>
</div>
</div>
</div>
<!-- Mobile sheet -->
<div class="navbar-drawer h-dvh w-full absolute top-0 left-0 bg-background-color flex flex-col justify-between">
<ul class="drawer-navbar-list flex flex-col px-4 justify-center items-start">
<li class="drawer-navbar-item text-base my-1.5 flex flex-col w-full">
<a class="py-1.5 px-2 flex flex-row items-center justify-between gap-1 hover:!text-primary active:!text-primary text-2xl font-semibold group border-b border-border-color hover:border-primary w-full active"
href="/"
>
<span>
HOME
</span>
<i class="fa-regular fa-house fa-sm fa-fw"></i>
</a>
</li>
<li class="drawer-navbar-item text-base my-1.5 flex flex-col w-full">
<a class="py-1.5 px-2 flex flex-row items-center justify-between gap-1 hover:!text-primary active:!text-primary text-2xl font-semibold group border-b border-border-color hover:border-primary w-full "
href="/archives"
>
<span>
ARCHIVES
</span>
<i class="fa-regular fa-archive fa-sm fa-fw"></i>
</a>
</li>
<li class="drawer-navbar-item-sub text-base my-1.5 flex flex-col w-full">
<div class="py-1.5 px-2 flex flex-row items-center justify-between gap-1 hover:!text-primary active:!text-primary cursor-pointer text-2xl font-semibold group border-b border-border-color hover:border-primary w-full active"
navbar-data-toggle="submenu-FriendLinks"
>
<span>
FRIENDLINKS
</span>
<i class="fa-solid fa-chevron-right fa-sm fa-fw transition-all"></i>
</div>
<div class="flex-col items-start px-2 py-2 hidden" data-target="submenu-FriendLinks">
<div class="drawer-navbar-item text-base flex flex-col justify-center items-start hover:underline active:underline hover:underline-offset-1 rounded-3xl">
<a class=" text-third-text-color text-xl"
target="_blank" rel="noopener" href="https://danmoliuhen.github.io/">YEBAO</a>
</div>
<div class="drawer-navbar-item text-base flex flex-col justify-center items-start hover:underline active:underline hover:underline-offset-1 rounded-3xl">
<a class=" text-third-text-color text-xl"
target="_blank" rel="noopener" href="https://wu-22.github.io/">WU-22</a>
</div>
<div class="drawer-navbar-item text-base flex flex-col justify-center items-start hover:underline active:underline hover:underline-offset-1 rounded-3xl">
<a class=" text-third-text-color text-xl"
target="_blank" rel="noopener" href="https://byjiangjb.github.io/">JJB</a>
</div>
</div>
</li>
<li class="drawer-navbar-item text-base my-1.5 flex flex-col w-full">
<a class="py-1.5 px-2 flex flex-row items-center justify-between gap-1 hover:!text-primary active:!text-primary text-2xl font-semibold group border-b border-border-color hover:border-primary w-full "
href="/masonry/"
>
<span>
ALBUM
</span>
<i class="fa-solid fa-image fa-sm fa-fw"></i>
</a>
</li>
<li class="drawer-navbar-item text-base my-1.5 flex flex-col w-full">
<a class="py-1.5 px-2 flex flex-row items-center justify-between gap-1 hover:!text-primary active:!text-primary text-2xl font-semibold group border-b border-border-color hover:border-primary w-full "
href="/bookmarks/"
>
<span>
BOOKMARKS
</span>
<i class="fa-solid fa-bookmark fa-sm fa-fw"></i>
</a>
</li>
</ul>
<div class="statistics flex justify-around my-2.5">
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/tags">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">7</div>
<div class="label text-third-text-color text-sm">Tags</div>
</a>
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/categories">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">0</div>
<div class="label text-third-text-color text-sm">Categories</div>
</a>
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/archives">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">36</div>
<div class="label text-third-text-color text-sm">Posts</div>
</a>
</div>
</div>
<div class="window-mask"></div>
</header>
</div>
<div class="main-content-body transition-fade-up">
<div class="home-sidebar-container">
<div class="sticky-container sticky">
<div class="sidebar-links">
<div class="site-info">
<div class="site-name">IKKO</div>
</div>
<div class="announcement-outside">
never
</div>
</div>
<div class="sidebar-content" marginTop >
<div class="avatar flex justify-center">
<img src="/images/56D9D2F8A1A04F1D59D48CAD0011E450.jpg">
</div>
<div class="author flex flex-col justify-center my-2.5 mx-0">
<div class="name">Ikko</div>
<div class="label">Lv4</div>
</div>
<div class="statistics flex justify-around my-2.5">
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/tags">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">7</div>
<div class="label text-third-text-color text-sm">Tags</div>
</a>
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/categories">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">0</div>
<div class="label text-third-text-color text-sm">Categories</div>
</a>
<a class="item tag-count-item flex flex-col justify-center items-center w-20" href="/archives">
<div class="number text-2xl sm:text-xl text-second-text-color font-semibold">36</div>
<div class="label text-third-text-color text-sm">Posts</div>
</a>
</div>
</div>
</div>
</div>
<div class="main-content">
<div class="home-content-container">
<ul class="home-article-list">
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2026/03/19/%E5%A4%A7%E6%A8%A1%E5%9E%8B/">
大模型
</a>
</h3>
<div class="home-article-content markdown-body">
大模型参数量和显存的换算关系1B参数对应多少G显存?B和G都是十亿(1000M或1024M)的意思,M是100万的意思,平时说模型参数有xB就是说有x十亿个参数,平时说显存有多少G/M是说有多少G/M个字节(byte),1个字节=8比特(bit),那么,1B模型参数对应多少G内存和参数的精度有关,如果是全精度训练(fp32),一个参数对应32比特,也就是4个字节...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fa-solid fa-calendars"></i>
<span class="home-article-date" data-date="Thu Mar 19 2026 12:08:12 GMT+0800">
2026-03-19
</span>
</span>
</div>
<a href="/2026/03/19/%E5%A4%A7%E6%A8%A1%E5%9E%8B/">Read more<span class="seo-reader-text">大模型</span> <i class="fa-solid fa-angle-right"></i></a>
</div>
</div>
</li>
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2026/03/16/nf4/">
nf4反量化实现与优化
</a>
</h3>
<div class="home-article-content markdown-body">
测试~/Learning-CUDA目录下
1234567891011121314151617# 默认 bf16make nf4# 显式指定 dtypemake nf4 DTYPE=fp16make nf4 DTYPE=bf16# 简写(等价于上面的 DTYPE)make nf4 fp16make nf4 bf16# 指定 GPUmake nf4 CUDA_DEVICE=7make ...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fa-solid fa-calendars"></i>
<span class="home-article-date" data-date="Mon Mar 16 2026 14:05:49 GMT+0800">
2026-03-16
</span>
</span>
</div>
<a href="/2026/03/16/nf4/">Read more<span class="seo-reader-text">nf4反量化实现与优化</span> <i class="fa-solid fa-angle-right"></i></a>
</div>
</div>
</li>
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2026/02/05/suanzi/">
算子实例
</a>
</h3>
<div class="home-article-content markdown-body">
做了一个简单的cuda项目,故记录下来。
头文件和宏定义12345678910111213#include <algorithm>#include <cmath>#include <vector>#include <cuda_fp16.h>#include <cuda_runtime.h>#include <iostream&...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fa-solid fa-calendars"></i>
<span class="home-article-date" data-date="Thu Feb 05 2026 13:56:54 GMT+0800">
2026-02-05
</span>
</span>
</div>
<a href="/2026/02/05/suanzi/">Read more<span class="seo-reader-text">算子实例</span> <i class="fa-solid fa-angle-right"></i></a>
</div>
</div>
</li>
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2026/01/26/bianyi/">
AI编译器
</a>
</h3>
<div class="home-article-content markdown-body">
AI编译器AI 编译器是一种针对 AI 和机器学习应用特别优化的编译器,它能够满足推理场景和训练场景不同需求,将高级语言编写的程序或者训练好的模型文件转换成可以在特定硬件上高效执行的程序。1)以 Python 语言为前端2)拥有多层 IR 设计3)面向神经网络深度优化4)针对不同芯片架构设计
目标
性能优化:极致降低训练、推理耗时,提升吞吐量。
资源利用:最大化硬件资源利用率(CPU...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fa-solid fa-calendars"></i>
<span class="home-article-date" data-date="Mon Jan 26 2026 20:12:27 GMT+0800">
2026-01-26
</span>
</span>
</div>
<a href="/2026/01/26/bianyi/">Read more<span class="seo-reader-text">AI编译器</span> <i class="fa-solid fa-angle-right"></i></a>
</div>
</div>
</li>
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2025/12/24/cuda/">
cuda
</a>
</h3>
<div class="home-article-content markdown-body">
前言CUDA 编程需要理解线程与硬件的物理映射,并优化显存(Global Memory)访问以提升性能。
核心映射Grid/Block/Thread 在物理资源上的占用情况。
软件层级 (Software)
硬件真身 (Hardware)
说明
Grid
Device (GPU)
对应显存 (Global Memory)。所有线程可见,但访问延迟较高。
Block
SM ...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fa-solid fa-calendars"></i>
<span class="home-article-date" data-date="Wed Dec 24 2025 14:46:57 GMT+0800">
2025-12-24
</span>
</span>
</div>
<a href="/2025/12/24/cuda/">Read more<span class="seo-reader-text">cuda</span> <i class="fa-solid fa-angle-right"></i></a>
</div>
</div>
</li>
<li class="home-article-item">
<div class="flex flex-col gap-5 px-7 pb-7 pt-7">
<h3 class="home-article-title">
<a href="/2025/12/23/PMPP/">
ncu nsight
</a>
</h3>
<div class="home-article-content markdown-body">
1vim gemm_naive.cu