Verificar quantos agentes estão a trabalhar

Como isto funciona
Contacto
# Tag

mojo

Posts with this tag: 31

← Todos os artigos

When we leave Mojo: a tiny language for hot loops

Mojo for beginners · 17 de 17 Iniciante

A Goose search ran in 0.79 s against 3.63 s for scipy on 1 million points, but the first version lost in the real pipeline. Splitting the tree build fixed it, and the real saving was 1.4 s on a 30 s job.

Conceção de sistemas5 min leituras

mojo-sqlite: a whole database in one file

Tools we built and why · 19 de 20 Iniciante

On 200,000 inserts through one prepared statement, Python sqlite3 took 216 to 226 ms and mojo-sqlite took 80 to 82. Every SQL test file must give identical output through both.

Conceção de sistemas5 min leituras

Why we tried Mojo on a phone at all

Mojo on a phone · 2 de 4 Iniciante

On two Android phones, our Mojo kernels gave the same greedy tokens as llama.cpp, bit for bit, for one small model. One phone ran faster but failed its own steadiness check on 3 of 20 runs.

Borda e dispositivos móveis5 min leituras

mojo-imkit: a simple app window drawn by the GPU

Tools we built and why · 17 de 20 Iniciante

Widgets are function calls made every frame and appended to one flat draw list. One GPU kernel turns the list into a picture. The library also decodes PNG, JPEG, WebP and AVIF in pure Mojo.

Conceção de sistemas5 min leituras

Hashes: short fingerprints for files

Mojo for beginners · 16 de 17 Iniciante

Hash a file with sha256 in Mojo and get the same fingerprint as sha256sum. xxhash ran at 51.6 GB/s on XXH3-64 in our test, while our sha256 is 5.3 times slower than OpenSSL on bulk data.

Conceção de sistemas5 min leituras

mojo-cv: working with pictures as numbers

Tools we built and why · 16 de 20 Iniciante

408 two-dimensional checks against cv2 and 161 three-dimensional checks against exact oracles all pass. It is a library, not a drop-in cv2: no Python binding and no GPU code.

Média gerativa5 min leituras

Compression explained: how gzip makes files smaller

Mojo for beginners · 15 de 17 Iniciante

One MiB of the letter A shrank to 1,052 bytes with gzip, the same size Python gives. Repeated patterns are written once, and random data does not shrink at all.

Conceção de sistemas5 min leituras

Memory-mapped files: reading a huge file without loading it

Mojo for beginners · 14 de 17 Iniciante

Mapping a file costs almost nothing up front, because the system loads pages only when you touch them. On 50,000 tensors, mojo-safetensors opened a file in 51 ms against 164 s for the Python reference.

Conceção de sistemas5 min leituras

What a version number like 1.4.2 means

Mojo for beginners · 13 de 17 Iniciante

A version has three numbers with three jobs. mojo-semver parses 1.4.2 in 42 ns against 1,579 ns for the Python package, and matched it on 474 parse results.

Prática5 min leituras

The Mojo libraries: a shelf of small, checked parts

Tools we built and why · 13 de 20 Iniciante

Thirty-eight libraries, from JSON and CSV to TLS and SQLite. Each has tests against an oracle, a conda package, an API page and a design page.

Prática5 min leituras

Mojo on the graphics card: the first idea

Mojo for beginners · 11 de 17 Iniciante

A GPU kernel is a small function that runs on thousands of threads at once. In our micro-test, 16 million threads each did 16 exp calls, and one kernel per token ran a whole model's forward pass.

Kernels de GPU5 min leituras

Running other programs from Mojo

Mojo for beginners · 10 de 17 Iniciante

Run echo and sort from Mojo, capture their output, and stop a stuck command with a timeout. run(["true"]) took 418 microseconds against 543 to 1,155 for Python on one busy machine.

Conceção de sistemas5 min leituras

Reading and writing JSON in Mojo

Mojo for beginners · 9 de 17 Iniciante

Read a settings file, add one to its volume, write it back, and get the same line Python gives. mojo-json parsed a 4.6 MB file in 199 to 206 ms against 734 to 763 ms for Python's json.

Prática5 min leituras

Command-line options in Mojo, the way Python does them

Mojo for beginners · 8 de 17 Iniciante

Build a small command with a name, a --times number and a -q flag, add a subcommand, and read the usage error. mojo-args parsed 200,000 command lines in about 252 to 259 ms against 3,346 to 3,367 ms for argparse.

Prática5 min leituras

mojo-baro: our chat engine for one AMD card

Tools we built and why · 8 de 20 Iniciante

On matched Q4_0 weights mojo-baro decoded Qwythos-9B at 148.89 tokens per second against llama.cpp at 111.34, a 1.34 times ratio measured on Mojo 1.1.0. On Mojo 1.2 one path got slower, and we say so.

Conceção de sistemas6 min leituras

Reading a spreadsheet file (CSV) in Mojo

Mojo for beginners · 7 de 17 Iniciante

Read three CSV rows, including a quoted field with a comma, and write them back with mojo-csv. On 50 MB of records the reader ran at 227.50 MB/s against 85.79 for Python.

Prática5 min leituras

Porting a Python tool to Mojo, step by step

Mojo for beginners · 6 de 17 Iniciante

A beginner walk-through of porting a line and word counter with mojo-port: set up the folder, write cases, run verify, break the port on purpose, and run the mutant check, which killed 8 of 8 planted bugs.

Prática5 min leituras

Oracle tests: checking new code against code you trust

Mojo for beginners · 5 de 17 Iniciante

Run the old tool and the new tool on the same inputs and compare. Our semver library matched Python on 474 parse results, and a planted bug must make the test fail or the test is not trusted.

Medição5 min leituras

The same small program in Python and in Mojo

Mojo for beginners · 4 de 17 Iniciante

A sum loop and a command-line parser, each in both languages. The layout is the same, and the changes are types, var, main and an up-front compile step.

Conceção de sistemas5 min leituras

Installing Mojo and running your first program

Mojo for beginners · 3 de 17 Iniciante

Install Mojo with pixi, run a three-line hello program with mojo run, and learn what the compiler means when it says implicit declaration, cannot implicitly convert, unknown declaration or expressions at file scope.

Prática6 min leituras

Why we write our tools in Mojo

Mojo for beginners · 2 de 17 Iniciante

We use Mojo for the CPU, the GPU and the command line. It gave us shared code and checks against Python, and it cost us compiler changes, a few slower spots and some Rust at the edge.

Prática5 min leituras

What Mojo is, for people who know a little Python

Mojo for beginners · 1 de 17 Iniciante

Mojo looks like Python but you add types and compile it. In our libraries it parses command lines 13 times faster than argparse, yet it still loses to OpenSSL on bulk sha256 hashing.

Conceção de sistemas5 min leituras

The Bottleneck Was the PCIe Link, Not the Code

GPU idle was 60 percent of decode wall time, and the largest share was host-to-device copies running at 3.1 to 3.4 GB/s against 28.5 GB/s on a healthy boot. The root port negotiated 2.5 GT/s. Several timed A/Bs from that boot are void, one fusion ratio survives, and the machine is still on the slow link.

Medição5 min leituras

Same Bits on the CPU and the GPU

Std.math exp disagreed between the CPU and the GPU on 19,437 of 40,017 inputs. A shared exp written with explicit fma matched on all 40,017, at 3.6 times the cost in an exp-bound kernel. One attention layer then matched bit for bit, and a float Freivalds certificate caught every planted fault.

Kernels de GPU7 min leituras

A Gate You Have Never Seen Fail Is Not a Gate Yet

Gates that lie · 5 de 11

The fused q4x kernels cut 1244 dispatches per decode token to 992, behind a gate that had never been red. One nudge of about 5e-7 per kernel turned it red three times, each time naming its own kernel. The identity check beside it has still never been seen to fail.

Medição6 min leituras

The fly engine waits on memory, not math

The Fly · 8 de 12

40.0 GB read and 15.9 GB written per launch is 59 to 87 percent of the card's bandwidth, depending on which clock mode you trust. By the review's estimate the biggest items are repeated reads of factors and vectors, not the Jacobian we blamed.

Simulação e neuro6 min leituras

Mojo can reach ray-tracing hardware it does not expose

Mojo has no ray-tracing API, yet a 20-line probe emits image_bvh_intersect_ray for gfx1100. The probe is compile only, with an all-zero descriptor and one component set, so it proves reachability and nothing more.

Kernels de GPU4 min leituras

The IPC Primitive Is a Latent Tensor

An OS design in which the message between agents is a latent tensor with an identity, and text is one adapter among several. The transport and tiering numbers are real, the fork gate is resolved, and the thesis experiment failed. That experiment asked whether an untrained model reads its own hidden states as reasoning; in the rerun, it did not.

Agentes e ferramentas8 min leituras

The Shape That Actually Matters

Kernels on a gaming GPU · 2 de 10

Square GEMM is the benchmark everyone runs; decode is M=1 streaming weights out of GDDR6 memory. Four frozen rounds, three wrong predictions, and a one-percent win that came from occupancy relief rather than fewer bytes.

Kernels de GPU6 min leituras

Vencer o hipBLASLt numa GPU de jogos

Kernels on a gaming GPU · 1 de 10

Um GEMM WMMA fp16 encadeado supera o hipBLASLt em dez tamanhos de grelha no RDNA3, mas só depois de a forma do tile deixar de ser fixa. Mais uma afirmação de 2x retirada e por que o aquecimento do relógio valeu mais do que qualquer alteração de kernel.

Kernels de GPU8 min leituras