Skip to content

Instantly share code, notes, and snippets.

View karminski's full-sized avatar

张旭红 (karminski-牙医) karminski

View GitHub Profile
import time
import torch
d = 8192
x = torch.randn(size=(d, d)).to(torch.bfloat16).to("cuda")
y = torch.randn(size=(d, d)).to(torch.bfloat16).to("cuda")
def fun(x):
for _ in range(50):
x = x @ y.T
return x
"""
Advanced FP4 Performance Test for NVIDIA B200
This script attempts to access FP4 formats if available
"""
import time
import torch
print(f"PyTorch version: {torch.__version__}")
print(f"CUDA available: {torch.cuda.is_available()}")
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Qwen3-VL Performance Benchmark</title>
<style>
* {
margin: 0;
padding: 0;
// ==UserScript==
// @name iPhone 17 Pro Custom Color Palette
// @namespace http://tampermonkey.net/
// @version 0.3
// @description iPhone 3D model with full color palette
// @author karminski-牙医
// @match https://www.apple.com.cn/iphone-17-pro/
// @grant none
// ==/UserScript==
{
"name": "generate-1-7-figure-with-nano-banana",
"nodes": [
{
"parameters": {
"content": "## Prompt\nCreate a 1/7 scale commercialized figurine of the characters in the picture, in a realistic style, in a real environment. The figurine is placed on a computer desk. The figurine has a round transparent acrylic base, with no text on the base. The content on the computer screen is the Zbrush modeling process of this figurine.Next to the computer screen is a packaging box with rounded corner design and a transparent front window, the figure inside is clearly visible.",
"height": 368,
"width": 304
},
"id": "8579984a-dcb8-449c-aef8-3082e2ae6b46",

Elephant Toothpaste Test

(CC-BY-NC-SA 4.0 by karminski-牙医)

Please use three.js to implement a realistic "Elephant Toothpaste" chemical experiment 3D demonstration. All code (including HTML, CSS, JavaScript) must be encapsulated in a single independent HTML file.

Scene Setup:

  1. Ground Plane: Create a 1000*1000 gray, smooth horizontal plane that can receive shadows.
  2. Erlenmeyer Flask:

Firecracker Chain Explosion Test

(CC-BY-NC-SA 4.0 by karminski-牙医)

Please use three.js to implement a realistic "firecracker box" 3D explosion chain reaction demonstration. All code (including HTML, CSS, JavaScript) must be encapsulated in a single, standalone HTML file.

Scene Setup:

  1. Ground Plane: Create a 1000×1000 gray, smooth horizontal plane that can receive shadows. Ground material uses {color: 0x808080, roughness: 0.8, metalness: 0.1}.

(CC-BY-NC-SA 4.0 by karminski-牙医)

杯子倒水测试

(CC-BY-NC-SA 4.0 by karminski-牙医)

请使用Python和pygame库,创建一个二维流体模拟程序。该程序需要模拟液体(由大量粒子代表)在重力作用下从一个正在倾斜的杯子中倒出的过程。

Bocchi the Rock! Vol3 dialogue, in Chinese

Speaker 1: 对不住了啊 我还是回家吧
Speaker 2: 哎为啥子呀?
Speaker 1: 抱歉啊,为啥我真的不想说, 但我真的不能去那块儿
Speaker 1: 千万别跟她们说我来过这里啊…
Speaker 3: 波奇酱你搁这儿呢啊!
Speaker 3: 虽然不知道你咋整的
Speaker 3: 我还是买了一裤兜子甜水呢!
Speaker 3: what's UP! 撩了的的吉他小妹儿!

import os
import subprocess
import sys
from pathlib import Path
# --- 1. Clone the VibeVoice Repository ---
repo_dir = "VibeVoice"
if not os.path.exists(repo_dir):
print("Cloning the VibeVoice repository...")
try: