Skip to content

Instantly share code, notes, and snippets.

"""
Minimal verification: is Rio-3.5-Open-397B ≈ α·Nex-N2-Pro + (1-α)·Qwen3.5-397B-A17B?
Strategy: download the safetensors header via HTTP range request, then fetch
only the specific tensor bytes we need. No multi-GB shard downloads.
"""
import json
import struct
import numpy as np
@xianbaoqian
xianbaoqian / install.sh
Last active January 28, 2023 15:51
Docker installation
sudo apt-get update -y
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
# Compile each source file to object files with `-c` option (without linking)
gcc -c main.c
gcc -c lib.c
# Check for symbols in the object file.
# 0000000000000000 D GLOBAL_COUNTER Symbol type D means an initialized value (main.c sets this value to 100).
# 000000000000005c T inc_global_counter T means that this symbol is in the text section and refers to the compiled machine code.
# 0000000000000000 T main
# U my_lib_func U means that this symbol is not defined in this file and must be loaded from another file.
# U printf