
TorchSharp LLaMA in F#
A from-scratch implementation of Llama 3.2 inference in F#: Grouped Query Attention, RoPE, SwiGLU, KV cache, and a Tiktoken tokenizer — running on .NET 10 with TorchSharp.

A from-scratch implementation of Llama 3.2 inference in F#: Grouped Query Attention, RoPE, SwiGLU, KV cache, and a Tiktoken tokenizer — running on .NET 10 with TorchSharp.

SIMD vectorization, zero-allocation backward pass, F# vs C# idioms, Adam optimizer, temperature sampling, and the limits of scalar autograd.

How Andrej Karpathy's single-file GPT works: autograd, the transformer forward pass, and a Python vs F# comparison of every key piece.

An introduction to functional programming patterns using Monads in F# to handle side effects and compose operations elegantly.

Master the most common algorithmic strategies to solve graph problems in LeetCode. Learn how to identify patterns and apply the right approach with real C# implementations.

Master the most common algorithmic strategies to solve heap problems in LeetCode. Learn how to identify patterns and apply the right approach with real C# implementations.

Master the most common algorithmic strategies to solve tree problems in LeetCode. Learn how to identify patterns and apply the right approach with real C# implementations.

Master the most common algorithmic strategies to solve linked list problems in LeetCode. Learn how to identify patterns and apply the right approach with real C# implementations.

Master dynamic programming strategies to solve optimization problems in LeetCode. Learn bottom-up, top-down, memoization, and tabulation with real C# implementations.

Master bit manipulation techniques to solve binary problems in LeetCode. Learn XOR tricks, Brian Kernighan's algorithm, and dynamic programming for bits with real C# implementations.