[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110352":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":13,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":33,"discoverSource":34},110352,"OpenAssembler","lucialuka\u002FOpenAssembler","lucialuka","Open source compiler for your whole ML repo (support python, CUDA C\u002FC++) into sass and cuda binary (which are closed sourced by Nvidia); 3-40% faster than Openai Triton for Neural Network (primarily LLM) based training\u002Finferencing","",null,"Python",221,14,2,0,44.84,"Apache License 2.0",false,"main",true,[22,23,24,25,26,27,28],"compiler","compiler-backend","compiler-optimization","gpu-acceleration","nvidia-cuda","ptx","sass","2026-11-23 07:48:48","2026-11-23 17:06:31","\n\u003Cp align=\"center\">\u003Cimg src=\"figs\u002Fopenassembler_logo.png\" width=\"680\" alt=\"OpenAssembler\">\u003C\u002Fp>\n\n# OpenAssembler\n\u003Cp align=\"center\">\n \u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002Flucialuka\u002Fopenassembler\">\n  \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=lucialuka\u002FOpenAssembler&type=rank&theme=dark\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=lucialuka\u002FOpenAssembler&type=rank\" \u002F>\n   \u003Cimg alt=\"Star History Rank\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fbadge?repo=lucialuka\u002FOpenAssembler&type=rank\" \u002F>\n  \u003C\u002Fpicture>\n \u003C\u002Fa>\n\u003C\u002Fp>\n\n**A from-scratch NVIDIA SASS\u002FCUDA Binary compiler, built entirely by reverse-engineering nvidia tools as a black box and applying kernel optimizations to the compiler.**\n\nDo you always feel like when the newest nvidia GPU come out with unbearable high price while your existing older GPUs are making you left behind in model serving and training? \n\nOpenAssembler generates native SASS and executable cubins for supported A100\u002FSM80 kernels, with shape-specific kernel and compiler optimizations. Performance depends on the operation and comparison: measured improvements over earlier OA kernels do not imply a win over matched ptxas or cuBLAS, and a whole-native transformer-training speedup has not been established. The CLI supports standalone kernels and repository discovery for supported Python, CUDA C\u002FC++ and PTX inputs. An explicit PyTorch application route uses Inductor\u002FTriton for GPU code generation. Broader architecture support and end-to-end training acceleration remain research goals; see the measured contracts and limitations below.\n\n[Architecture and status](docs\u002FSTATUS.md) · [All commands](docs\u002FCOMMANDS.md) ·\n[Research catalogue](docs\u002Fresearch\u002FREADME.md) · [Development setup](docs\u002FDEVELOPMENT.md)\n· [Repository workflow and SSH\u002FModal setup](docs\u002FREPOSITORY_WORKFLOW.md)\n· [Reverse-engineering results](docs\u002Freverse_eng_results\u002FREADME.md)\n\n> ⚠️ **IMPORTANT NOTICE**\n> This project is currently under **active heavy development** for kernel optimization and assembly language edge case handling. If you encounter any bugs\u002Fcompiler inefficiency during deployment, please feel free to open an Issue. Your feedback will help us build a better version!\n\n## What you can do\n\n- Compile standalone kernels or discover supported kernels in a repository.\n- Generate full-tile FP16\u002FBF16 GEMMs with FP32 output. The CLI chooses an exact\n  measured A100 policy for the one currently promoted production contract\n  (128×512×512 FP16); other shapes use the reference until their production\n  binaries are revalidated. Manual policy options and correctness-gated GPU\n  tuning are also available.\n- Generate cooperative FP32 softmax and population LayerNorm with row\u002Fcolumn tails.\n- Inspect cubins and SASS, emulate supported instructions, and run matched GPU\n  checks locally, over SSH or on Modal.\n- Capture a configured PyTorch application's bounded workload and replay its\n  saved compiler\u002Fruntime cache with state verification.\n- Study factorized matrix multiplication, compiler encodings and scheduling\n  through the retained research tools and evidence.\n- Audit transformer QKV\u002Foutput\u002FFFN roles and shape\u002Flayout coverage before\n  selecting a native GEMM policy.\n\nSupport and performance are workload-specific. The [status page](docs\u002FSTATUS.md)\nseparates native compiler results, library controls and application-frontend\nresults. The [research catalogue](docs\u002Fresearch\u002FREADME.md) includes successful,\nrejected, mixed and untested ideas, each with its own methods and reproduction.\nThe [native NN arithmetic campaign](docs\u002Fresearch\u002Fideas\u002Fnn-arithmetic-campaign.md)\nadds isolated operators, forward\u002Fbackward GEMMs and six composed networks;\nits new candidates remain experimental and its failed gates remain excluded.\n\n## Quick start\n\nOn macOS or Linux with Homebrew, install the complete CLI and its Modal\ntransport with:\n\n```sh\nbrew tap lucialuka\u002Fopenassembler https:\u002F\u002Fgithub.com\u002Flucialuka\u002FOpenAssembler\nbrew install openassembler\n```\n\nThe formula installs Python 3.12, the compiler\u002Fdata tree, examples,\ndocumentation and the Modal CLI. See [Homebrew installation](docs\u002FHOMEBREW.md)\nfor the CUDA toolkit and SSH runtime requirements. If the formula is not yet\navailable from the tap, install the local formula from a checkout with\n`brew install --build-from-source .\u002FFormula\u002Fopenassembler.rb`.\n\nUse Python **3.12 or newer**:\n\n```sh\npython3 -m venv .venv\nsource .venv\u002Fbin\u002Factivate\npip install -e .\n```\n\nFor Modal, set up its optional client once. The local machine does not need a\nCUDA toolkit or GPU when both compilation and execution are remote:\n\n```sh\npip install modal\nmodal setup\nopenassembler compile testcases\u002Ftest_whole_repo --frontend torch --backend modal --verify\nopenassembler run testcases\u002Ftest_whole_repo --backend modal --verify-application\n# Or capture and replay in one command:\nopenassembler cnr testcases\u002Ftest_whole_repo --frontend torch --backend modal --verify\n```\n\nReplace that example with your repository path. A PyTorch repository provides\n`openassembler.toml` with its entry point and bounded workload; a native-kernel\nrepository needs no application configuration. Directory builds default to\n`REPO\u002Foutput\u002Fcubin\u002F`, `REPO\u002Foutput\u002Fsass\u002F` and `REPO\u002Foutput\u002Fmanifest.json`.\nFor a custom location, use the same `--out-dir DIR` on `compile` and `run`.\nIndependent native source files build with up to four bounded workers by\ndefault; set `OPENASSEMBLER_BUILD_JOBS=1` for serial reproducibility.\n\nUse an existing Linux A100 host over SSH with the same commands:\n\n```sh\nopenassembler compile \u002Fpath\u002Fto\u002Fmy_repo --backend user@a100 --verify\nopenassembler run \u002Fpath\u002Fto\u002Fmy_repo --backend user@a100\nopenassembler cnr \u002Fpath\u002Fto\u002Fmy_repo --backend user@a100 --verify\n```\n\nSSH needs noninteractive access and the remote toolkit\u002Fruntime described in\nthe [setup guide](docs\u002FREPOSITORY_WORKFLOW.md#ssh-from-your-workstation).\nInside an SSH terminal on the GPU host, use `--backend local` instead.\nNative multi-kernel execution needs your actual buffers and launches in\n`--spec launch.json`; discovery alone does not infer a training program.\n\nFor local native compilation, an installed Linux CUDA toolkit can be used.\nOn macOS the toolkit runs in a Colima Linux VM:\n\n```sh\n# macOS only: install Colima if necessary, then start its VM.\ncolima start\n# Download the pinned tools and check their version.\nenv\u002Ffetch_cuda.sh\nenv\u002Fcuda.sh ptxas --version\n```\n\nSee [development setup](docs\u002FDEVELOPMENT.md#toolkit-and-host-requirements) for\nplatform details, optional dependencies and an existing-toolkit installation.\n\nCompile a kernel and inspect the intended launch without sending a GPU job:\n\n```sh\nopenassembler compile examples\u002Fvector_add.py --out-dir output\u002Fvector\nopenassembler run output\u002Fvector --dry-run\n```\n\nGenerate a native tensor kernel or cooperative reduction:\n\n```sh\nopenassembler gemm --m 1024 --n 1024 --k 1024 --dtype f16 --out-dir output\u002Fgemm\nopenassembler gemm --m 1024 --n 4096 --k 1024 --fragment-schedule load_next --out-dir output\u002Fload_next\nopenassembler gemm --m 16384 --n 4096 --k 4096 --cta-order grouped_n8 --out-dir output\u002Fgrouped_n\nopenassembler rowwise --op softmax --rows 1024 --width 512 --out-dir output\u002Fsoftmax\n```\n\nA configured application is captured only when the application frontend is\nselected explicitly. Inspect either route before submitting any work:\n\n```sh\nopenassembler compile testcases\u002Ftest_whole_repo --frontend torch --verify --dry-run\nopenassembler cnr \u002Fpath\u002Fto\u002Fmy_repo --backend user@a100 --dry-run\n```\n\nTo execute native outputs on an authenticated Modal GPU:\n\n```sh\nopenassembler run output\u002Fgemm --backend modal --budget 180 --job-timeout 60\n```\n\nRun `openassembler` without arguments for the interactive shell, or use\n`openassembler --help` and `openassembler COMMAND --help` for one-shot commands.\nThe [complete command reference](docs\u002FCOMMANDS.md) explains every command and\nflag. Actual research reproduction belongs to the\n[individual idea dossiers](docs\u002Fresearch\u002FREADME.md), not this introduction.\n\n## Repository map\n\n- `openassembler\u002F`: frontends, native backends, binary support and GPU\u002Fapplication runtime.\n- `specs\u002F`, `corpus\u002F`, `probes\u002F`, `tools\u002F`: encoding data, test inputs and research tooling.\n- `tests\u002F`, `examples\u002F`, `testcases\u002F`: regression tests and executable examples.\n- `docs\u002F`: architecture, command reference, per-idea research and retained evidence.\n- `exp\u002F`: isolated experiment drivers and raw records; no production import dependency.\n\nThe package is version **0.2.0**. See [LICENSE](LICENSE) and [NOTICE](NOTICE).\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=lucialuka%2Fopenassembler&type=date&legend=top-left\">\n \u003Cpicture>\n   \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=lucialuka\u002Fopenassembler&type=date&theme=dark&legend=top-left\" \u002F>\n   \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=lucialuka\u002Fopenassembler&type=date&legend=top-left\" \u002F>\n   \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=lucialuka\u002Fopenassembler&type=date&legend=top-left\" \u002F>\n \u003C\u002Fpicture>\n\u003C\u002Fa>\n","OpenAssembler 是一个开源的 NVIDIA GPU 汇编级编译器，专为将 Python 和 CUDA C\u002FC++ 编写的 ML 代码（尤其是大语言模型训练与推理）直接编译为原生 SASS 汇编和可执行 cubin 二进制文件而设计。它通过逆向工程 NVIDIA 工具链实现，支持 A100\u002FSM80 架构，提供形状感知的内核优化、全 Tile FP16\u002FBF16 GEMM、协同 FP32 Softmax 与 LayerNorm 等核心功能，实测在部分 LLM 场景下比 OpenAI Triton 快 3–40%。适用于追求极致 GPU 利用率、需绕过 PTX 中间层或对老旧 NVIDIA GPU 进行性能再挖掘的模型部署与训练加速场景。","2026-11-24 04:38:45","CREATED_QUERY"]