Mojourney

gabrieldemarmiesse / torch-mojo-backend

GitHub ↗ · first seen in GH Archive 2026-10-13 (name / language) · 207,164 lines of Mojo in 260 files at the last of 639 commits (2025-08-05 to 2026-10-19)

Stars31as of 2026-11-23
Forks7as of 2026-11-23
Depends on1Mojo libraries, of 34 declared
Used by0census repos that depend on it
Open issues66
Watchers1
Created2025-08-051.3 years ago
Lines of Mojo207,164260 files
Commits6392025-08-05 to 2026-10-19
Contributors6commit authors, bots left out
Mojo version1.1.0from lock file
CategoryOtherapproximate
Toolinguv
Packagingnone
LicenseMIT

Over time

2025-08-05 to 2026-10-19; peak 207,164 lines

Dependencies

Depends on Mosaad-M/requests.

Declared in its manifests at HEAD (toolchain left out): coverage, docs, expecttest, hatchling, ipython, matplotlib, max-mojo-libs, mike, mkdocs, mkdocs-include-markdown-plugin, mkdocs-material, mojo-compiler-mojo-libs, mojo-lldb-libs, nvidia-cuda-nvcc-cu12, nvidia-nccl-cu12, pillow, platformdirs, pydantic, pytest, pytest-cov, pytest-forked, pytest-random-order, pytest-split, pytest-xdist, requests, rich, ruff, setuptools, tabulate, tiktoken, torch, torchvision, transformers, ty.

Similar repos

RepoDescriptionSimilarity
nico-byte/mojo-torch–87%
millfolio/engineExperimental native mojo backend.82%
enriquesouza/mojoflask–81%
Deufel/mojoMojo playground repo81%
axiomhq/mojo-hyperloglog–81%

By the cosine of the embeddings of each repo's name, description and topics: bge-small-en-v1.5 at bbddccb7, from snapshot 3454761910736014829 of mojo.repo_embeddings, which mojo_embed writes.

Stars per month

Stars (WatchEvents) and forks per month in GH Archive, 2023-01 to 2026-10012023-012023-052023-092024-012024-052024-092025-012025-052025-092026-012026-052026-09
  • stars
  • forks

0 stars over the months of GH Archive loaded so far (47; months in between aren't loaded yet), counted from its events.

Contributors per month

People with a commit each month, and the ones with their first, 2025-08 to 2026-100242025-082025-102025-122026-022026-042026-062026-082026-10
  • contributors
  • new

6 people authored or co-authored its commits (every commit reachable from HEAD, Co-authored-by trailers included, bots left out), counted by email.

Releases and tags

DateTagNameFromMojo versionCommit
2026-08-18v0.3.1–git tag1.0.0b5a7365855
2026-08-18v0.3.0–git tag1.0.0a3507f30e5
2025-08-20v0.2.0–git tag25.6.0.dev20250816199cbeac72ee
2025-08-16v0.1.1–git tag25.6.0.dev202508150572617ed0ca
2025-08-16v0.1.0–git tag25.6.0.dev2025081505acea84d294

Issues and pull requests

41 open and 18 closed issues; 25 open, 508 merged and 108 closed pull requests, from GitHub by mojo_issues.

Open issues

#TitleUpdatedLabelsComments
682torch.compile: a symbolic view of another (non-input) output gets offset 02026-10-17 bug0
681torch.compile: dynamic-shape recompile crashes on a specialized SymInt placeholder ('Integer' object has no attribute 'name')2026-10-17 bug0
680torch.compile: clone / _to_copy / copy return the input itself, so the 'copy' aliases it2026-10-17 bug0
675torch.compile on CPU tensors: log of subnormal inputs is wrong (fp32 and fp64)2026-10-16 bug0
671float64 is largely unsupported on the mojo device (checklist)2026-10-16 enhancement0
670Missing mixed-dtype promotion in several ops (NotImplementedError / compile errors where torch promotes)2026-10-16 bug0
669torch.compile(backend="inductor") on bf16 mojo tensors fails: is_bf16_supported() lacks including_emulation2026-10-16 bug0
668mojoccl: init_process_group after destroy_process_group fails in ncclCommInitRank2026-10-16 bug0
667dist.split_group always fails: the default process group never gets bound_device_id2026-10-16 bug0
666register_mojo_devices() enables swap_module_params_on_conversion process-wide, breaking load_state_dict for RNN/GRU/LSTM2026-10-16 bug0

Pull requests

#TitleOpenedStateComments
700Eager unary ops and casts: bit-identical to stock CUDA on NVIDIA2026-10-20open0
699Apply the batch_isend_irecv and has_triton patches only below torch 2.142026-10-19merged0
698Drop the global swap-on-conversion flag: mojo kernel for _has_compatible_shallow_copy_type2026-10-19merged0
697Mojo ops: one implementation per shared helper (dedup)2026-10-19open0
696tests: share the op-ran, float64-skip, Metal and subprocess helpers; one bench helper for reductions2026-10-19open0
695Kernels: share duplicated host helpers (dispatchers, acc dtype, atomic scope, MMA8, dx ladder, ...)2026-10-19open0
694aten_functions: share the argmax/argmin, amax/amin and _foreach bodies; fix compiled argmax/argmin on non-innermost dims2026-10-19open0
693shim: one exception-to-status wrapper for the C-ABI entries2026-10-19merged0
692Share the libcuda wrappers, flag reader and torch-version parse; search librccl under HIP_PATH too2026-10-19open0
691Tests: live stock-CUDA oracle replaces the recorded CUDA goldens2026-10-19open0

Migrations

DateWhatFromToCommit
2025-08-05mojo_version–25.5.0277cf292c0
2025-08-05toolingnoneuv277cf292c0
2025-08-13mojo_version25.5.025.6.0.dev2025081205eb0151757d
2025-08-14mojo_version25.6.0.dev202508120525.5.0b2efc23cfe
2025-08-16mojo_version25.5.025.6.0.dev2025081505acea84d294
2025-08-17mojo_version25.6.0.dev202508150525.6.0.dev2025081619d62f750437
2025-09-04mojo_version25.6.0.dev202508161925.6.0.dev2025090305e202a6f399
2025-09-04mojo_version25.6.0.dev20250903050.25.6.0.dev20250904053a38649464
2025-09-09mojo_version0.25.6.0.dev20250904050.25.6.0.dev20250908051ebe520eda
2025-09-22mojo_version0.25.6.0.dev20250908050.25.7.0.dev2025092205f59d5bb0cd
2025-09-23mojo_version0.25.7.0.dev20250922050.25.7.0.dev202509230580c373f5e3
2025-10-01mojo_version0.25.7.0.dev20250923050.25.7.0.dev2025100101fbf880ed46
2025-10-16mojo_version0.25.7.0.dev20251001010.25.7.0.dev2025101518b34182722d
2025-10-24mojo_version0.25.7.0.dev20251015180.25.7.0.dev2025102405c0598315fc
2025-11-09mojo_version0.25.7.0.dev20251024050.25.7.0.dev20251109057ad4f73e2c
2025-11-26mojo_version0.25.7.0.dev20251109050.26.1.0.dev20251121050a0ec4089d
2025-11-26mojo_version0.26.1.0.dev20251121050.25.7.0c5eb3c5027
2026-02-20mojo_version0.25.7.00.26.2.0.dev2026022005682397b44a
2026-02-25mojo_version0.26.2.0.dev20260220050.26.2.0.dev2026022405d5ac2da94e
2026-03-29mojo_version0.26.2.0.dev20260224050.26.3.0.dev2026032805410398214f
2026-04-08mojo_version0.26.3.0.dev20260328050.26.3.0.dev202604080592361fa447
2026-04-22mojo_version0.26.3.0.dev20260408050.26.3.0.dev2026042105f137e423d8
2026-06-18mojo_version0.26.3.0.dev20260421051.0.0e0bdbf6fa4
2026-09-25mojo_version1.0.01.1.00b24bf5565

Commits

Commit types: Feature 41% · Fix 8% · Mojo version 4% · Migration 1% · Refactor 9% · Performance 0% · Docs 3% · Tests 14% · Build and chores 3% · Merge 0% · Other 17%

DateCommitTypeSubjectLines of MojoToolingMojo version
2026-10-190e3e36d6eeOther +testsDrop the global swap-on-conversion flag: mojo kernel for _has_compatible_shallow_copy_type (#698)207,164uv1.1.0
2026-10-19343a94dab3Other +testsApply the batch_isend_irecv and has_triton patches only below torch 2.14 (#699)207,101uv1.1.0
2026-10-19d2d0d073e5Build and choresshim: one exception-to-status wrapper for the C-ABI entries (#693)207,101uv1.1.0
2026-10-18d242c2a8abOther +testsNative asinh: bit-identical to stock CUDA, no cancellation for negative inputs (#689)207,101uv1.1.0
2026-10-176b83c02448Teststest_loader: one cold backend build per CI run instead of one per shard (#686)206,571uv1.1.0
2026-10-17893cb24d96Build and chores +testsCI: run the torch.compile-on-CPU tests on the CPU runners (#685)206,571uv1.1.0
2026-10-1783cc5743cbOther +testsPreserve torch stream semantics and parallelize inference with MAX side streams (#672)206,571uv1.1.0
2026-10-173ceb45a80bTestsNative log/log2: bit-identical to stock CUDA (fixes float32 subnormal inputs) (#673)206,571uv1.1.0
2026-10-17fdc9fc3787Refactor +tests +docsCollective watchdog: report the library's asynchronous errors within a poll (#676)206,499uv1.1.0
2026-10-1722f0cf5c60Teststorch.compile: Python scalar arguments that change between calls (fixes #664) (#683)206,123uv1.1.0
2026-10-17a0c332cc67Other +testsCache get_device_properties per device (#677)206,123uv1.1.0
2026-10-170830bd5f34Other +testsCollective flight recorder, modeled on PyTorch 2.14's (#678)206,123uv1.1.0
2026-10-177924725e65Other +teststorch.compile: return input aliases as the input (fixes wrong gradients with compiled FSDP2) (#679)205,341uv1.1.0
2026-10-164d95126768Fix +testsFix MI300A math correctness and ROCm test assumptions (#649)205,341uv1.1.0
2026-10-163736f68d83Fix +testsFix Apple M4 test failures and verify CUDA fixtures in CI205,238uv1.1.0
2026-10-16608e2eb15aOther +testsCollective watchdog: a distributed hang reports and exits (#646)204,900uv1.1.0
2026-10-16756a761de1Feature +teststorch._scaled_mm and _scaled_grouped_mm on the mojo device202,871uv1.1.0
2026-10-16d308637f18Other +testsFloat8 dtypes on the mojo device200,427uv1.1.0
2026-10-150bf2fb3d23TestsCollectives inside graphs compiled with mojo_backend (#643)194,757uv1.1.0
2026-10-158d2473315bTestsGraph backend: index_put with an N-D index tensor (#645)194,397uv1.1.0
2026-10-1508fafd1321TestsGraph backend: a size-1 dim broadcast against a scalar keeps its 1 (#644)194,397uv1.1.0
2026-10-15f584826898Featuretorch.export tests on the mojo device194,397uv1.1.0
2026-10-15b859198648Other +tests +docsComplex arithmetic, math and reductions on the mojo device194,397uv1.1.0
2026-10-154b72a96b94Feature +testsFFT on the mojo device without cuFFT192,259uv1.1.0
2026-10-15848c9a6d18Other +testsComplex tensors on the mojo device190,635uv1.1.0
2026-10-14244b7e852bOther +testsNative foreach reductions185,790uv1.1.0
2026-10-14a9f392c29fTestsNative foreach unary, binary and pointwise ops184,974uv1.1.0
2026-10-14f67214187dRefactorOne multi-tensor apply for the foreach ops, registered from one table184,787uv1.1.0
2026-10-03e55f69ca94Other +testsFollow-up to #506: linalg_cross and test-only ops on the mojo device; fix every Apple M4 failure of tests/native184,526uv1.1.0
2026-10-03a8480bfb07Other +testsFollow-up to #506: vision ops, dense linear algebra and in-place op coverage on the mojo device183,990uv1.1.0
2026-10-0245f19d0fd4Other +testsFollow-up to #506: matmul, tensor utilities, reductions and indexing ops on the mojo device173,331uv1.1.0
2026-10-012917a6d11dFeature +testsFollow-up to #506: softmax, NLL/margin/CTC losses and the batch-norm family on the mojo device158,638uv1.1.0
2026-10-01498f956e46Feature +testsFollow-up to #506: fused LSTM/GRU cells, the transformer fast path and the remaining SDPA entry points on the mojo device152,183uv1.1.0
2026-10-01cdf6347741OtherFollow-up to #506: drop the 167 conformance declarations whose nodes now pass149,119uv1.1.0
2026-09-29ad40b2b077Refactor +testsFollow-up to #506: fused optimizers, PReLU, random samplers, fused isclose and the last elementwise gaps on the mojo device149,119uv1.1.0
2026-09-2874221464b7Other +testsFollow-up to #506: add ~90 missing ops on the mojo device: elementwise dtype gaps, glu, data movement and indexing, padding, upsampling and pooling146,528uv1.1.0
2026-09-283703fe0b27Refactor +testsFollow-up to #506: compute the general p-norm in double for float64 on the mojo device (#615)140,006uv1.1.0
2026-09-28ccdf8211fdTestsFollow-up to #506: support 0-d and empty operands in cumsum (#613)140,026uv1.1.0
2026-09-28112e8dd9c7FixFix Metal failures in cat.out with a converting out (#617)140,015uv1.1.0
2026-09-28ad6cde5b28Fix +testsFix Metal failures in printing tensors (#618)140,019uv1.1.0
2026-09-281788190381Other +testsFollow-up to #506: raise IndexError/RuntimeError for bad reduce dims on the mojo device (#614)140,019uv1.1.0
2026-09-28140fde224cFixFix Metal failures in scatter_add, index_add and index_put(accumulate=True) (#616)139,995uv1.1.0
2026-09-2862dc40cbb6Feature +testsAdd 67 elementwise ops on the mojo device: deg2rad/ldexp/frexp, activations, losses, Bessel and special functions, orthogonal polynomials, rounding, the gamma family, i0 and logit139,954uv1.1.0
2026-09-2788bc3b5836Other +testsFollow-up to #506: support float64 out= destinations on the mojo device's reduction ops (#612)138,462uv1.1.0
2026-09-2725a9e2db55Feature +testsAdd 37 elementwise ops on the mojo device: clamp family, pow.Scalar, lerp.Tensor, rsub, inf predicates, unary elementary and erf functions, sign family, binary trig/math, fmax/fmin/heaviside/nextafter138,262uv1.1.0
2026-09-274bf7747c2dFeature +testsSupport any ord in linalg_vector_norm and legacy norm on the mojo device (#611)137,711uv1.1.0
2026-09-27c3adc7f974TestsFollow-up to #506: support reducing rank-0 (0-d) operands (#610)137,545uv1.1.0
2026-09-2778a5c06147TestsFollow-up to #506: harden weak reduce-op tests (#609)137,510uv1.1.0
2026-09-27822e70b753Feature +testsAdd aten.logical_or and the .out overloads of logical_and/xor and maximum/minimum on the mojo device137,531uv1.1.0
2026-09-273a685314d0Feature +testsAdd the out= overloads of aten.bitwise_and/or/xor and aten.remainder on the mojo device137,525uv1.1.0

The latest 50 of 639 commits; all of them are in the JSON.