How thinkersjournal/fuel works
Fuel is a Rust ML framework: users construct tensors, select a device, and run tensor operations, with CPU and optional GPU execution. Its broader product includes lazy graph execution and optimization, model loading and transformer implementations, inference state and scheduling, and training and data utilities. The excerpts show the tensor-to-pipelined-execution bridge and selected backend internals; many other subsystem links are based only on the README or remain unverified, so they are omitted or dashed.
Main entry points: lazy.rs Tensor operations · pipelined_bridge.rs Pipelined bridge · storage.rs CUDA backend · device.rs CUDA device
Components 19
Tensor API
- Tensor operations
fuel-tensor/src/lazy.rs
Graph Runtime
- Pipelined bridge
fuel-tensor/src/pipelined_bridge.rs - Inference context
fuel-tensor/src/inference_context.rs - Dispatch and planning
fuel-dispatch/src/dispatch.rs - Graph operations
fuel-graph/src/run.rs
Compute Backends
- Backend contract
fuel-backend-contract/src/storage.rs - Tensor IR
fuel-ir/src/op.rs - CUDA backend
fuel-cuda-backend/src/storage.rs - CUDA device
fuel-cuda-backend/src/device.rs - Metal backend
fuel-metal-backend/src/storage.rs - Vulkan backend
fuel-vulkan-backend/src/pipelines.rs
Models And Data
- Model loaders
fuel-loaders/src/lib.rs - Model formats
fuel-formats/src/lib.rs - Transformer models
fuel-transformers/src/lib.rs - Datasets
fuel-datasets/src/lib.rs
ML Workloads
- Inference utilities
fuel-inference/src/lib.rs - Training
fuel-training/src/lib.rs - Neural network layers
fuel-nn/src/lib.rs
Other components
- Rust application
Connections 10
- Rust application → Tensor operations: creates tensors
README.md - Tensor operations → Pipelined bridge: realizes tensors
fuel-tensor/src/pipelined_bridge.rs - Inference context → Pipelined bridge: realizes cached graph
fuel-tensor/src/inference_context.rs - Pipelined bridge → Dispatch and planning: compiles plan
- Tensor operations → CUDA backend: runs on GPU
- Rust application → CUDA device: selects CUDA
README.md - CUDA device → CUDA backend: provides device storage
fuel-cuda-backend/src/device.rs - Metal backend → Backend contract: implements backend storage
- CUDA backend → Backend contract: implements backend storage
- Model formats → Model loaders: supplies model formats