Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 5 min read Announcement easyNovice

Mixtral 8x7B: What you need to know about Mistral AI’s latest model

Mixtral 8x7B, Mistral AI's new open model, supports 32k-token context, improves code generation and matches or beats Llama 2 70B and GPT-3.5 on benchmarks such as MMLU, MBPP and GSM-8K. Self-hosting it needs about 64GB RAM and 2 GPUs, roughly 3x the cost of Mistral 7B, but Mistral's beta API offers an OpenAI-like Python/JavaScript client with mistral-tiny, mistral-small (Mixtral) and mistral-medium models, priced below gpt-3.5-turbo for the smaller tiers. The 1024-dimension mistral-embed model costs slightly more than ada v2, and switching from 1536-dimension ada embeddings stored in pgvector means regenerating them.

Related posts

  • Welcome Mixtral - a SOTA Mixture of Experts on Hugging Face

    Hugging Face mediumAdept

    Mixtral 8x7B is Mistral's sparse Mixture-of-Experts LLM. It replaces feed-forward layers with MoE layers that route each token to 2 of 8 experts, so it has about 45B total parameters but decodes at roughly the speed of a 12B dense model. On release it beat Llama 2 70B on the Open LLM Leaderboard and matched GPT-3.5 on MT-Bench (8.30), under an Apache 2.0 license. Hugging Face shipped integrations for running it with Transformers and Text Generation Inference, plus QLoRA fine-tuning with TRL on one A100 (attention projections only, since sparse MLP layers interact poorly with PEFT). For quantization, VRAM needs are about 90 GB in fp16 and about 23 GB in 4-bit, and GPTQ performs better when the expert gating layers are left unquantized (perplexity 4.40 vs 4.25 in fp16).

  • Welcome Le Chonk: Mistral Large 4 on Hugging Face

    Hugging Face mediumAdept

    Mistral Large 4 is a multimodal, multilingual Mixture-of-Experts model with about 1T total and 49B active parameters and a 1M-token context window. It combines two kinds of sparsity: Multi-head Latent Attention with a DeepSeek Sparse Attention indexer that selects up to 2,048 key positions per query, and 71 MoE layers that route each token to 4 of 128 experts plus a shared expert. A 1.6B Pixtral encoder handles images. It scores 82% on a vulnerability reproduce-and-patch test and 93% on Cybench, ships in FP8 and NVFP4 with day-0 Transformers, vLLM, llama.cpp and TRL support, and reaches about 65 tok/s single-request on 8×H200, or 15 tok/s with a 2-bit quant on an M3 Ultra.

  • Mistral 7B and BAAI on Workers AI vs. OpenAI Models for RAG

    Neon mediumAdept

    Swapping gpt-3.5-turbo for mistral-7b-instruct-v0.1 and text-embedding-ada-002 for BAAI's bge-base-en-v1.5 (both on Cloudflare Workers AI) in Neon's docs chatbot shows embeddings are close to interchangeable but text generation is not. Across eight Postgres questions, the two embedding models returned the same retrieved chunks 46% of the time at k=3 (42% at k=10), with Jaccard and TF-IDF cosine scores indicating substantial context overlap. Expert raters scored GPT-3.5 answers 3.8/5 versus 2.5/5 for Mistral 7B. Migrating embeddings to BGE looks viable and can cut vector storage, while replacing the generation model would noticeably hurt answer quality.

  • Llama 3.1 - 405B, 70B & 8B with multilinguality and long context

    Hugging Face mediumAdept

    Meta's Llama 3.1 ships in 8B, 70B and 405B sizes, each with base and instruct variants, plus the Llama Guard 3 and Prompt Guard safety classifiers. All models support 128K context, 8 languages and tool calling, and the license now permits using outputs for distillation and synthetic data. Concrete memory figures are given: the 405B model needs 810 GB in FP16 or 405 GB in FP8, and KV cache at 128K tokens reaches 123 GB for 405B and rivals the weights' size for 8B. There are also fine-tuning estimates for full, LoRA and Q-LoRA, Transformers usage and 4-bit loading, and the prompt format with the new ipython role and built-in tool-calling tokens.

  • Welcome GPT OSS, the new open-source model family from OpenAI!

    Hugging Face mediumAdept

    OpenAI's gpt-oss-120b (117B total, 5.1B active) and gpt-oss-20b (21B total, 3.6B active) are Apache 2.0 open-weight mixture-of-experts reasoning models. Their MoE weights are quantized to MXFP4, so the large model fits on one 80GB H100 and the small one runs in 16GB. Architecture notes cover softmax-after-topk routing, alternating full and 128-token sliding-window attention, and learned per-head attention sinks. The guide shows how to run the models via Inference Providers, transformers (MXFP4 kernels, Flash Attention 3 with sinks on Hopper, MegaBlocks MoE kernels as a bf16 fallback), llama.cpp and vLLM, plus fine-tuning with TRL and chat template handling.

The quest for software engineering knowledge.

Look:
Layout: