This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update -y | |
| sudo apt-get install \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg \ | |
| lsb-release | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |