Skip to content

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

Hugging Face 16 min read Announcement mediumAdept

Llama can now see and run on your device - welcome Llama 3.2

Meta's Llama 3.2 adds ten open-weight models: 11B and 90B vision models built by attaching a vision tower and image adapter to frozen Llama 3.1 8B/70B text models, 1B and 3B multilingual text models aimed at on-device use, and Llama Guard 3 variants for vision and small deployments. Vision models handle 128k context but attend only to the last image, and the multimodal license excludes EU-domiciled individuals and companies. The 3B instruct model matches Llama 3.1 8B on IFEval and the small models fit in under 2 GB at INT4. Transformers 4.45+ code samples cover text and vision inference, alongside llama.cpp, Transformers.js, fine-tuning and cloud deployment options.

Assumes: LLM basicsPythonHugging Face Transformers

Related posts

  • Gemma 3n fully available in the open-source ecosystem!

    Hugging Face mediumAdept

    Gemma 3n, Google's natively multimodal on-device model accepting text, image, audio and video, now runs in transformers, timm, MLX, llama.cpp (text only), Transformers.js/ONNX and Ollama. The E2B and E4B variants have 5B and 8B real parameters but need only about 2GB and 3GB of GPU memory. Per-Layer Embeddings offload embeddings to the CPU, and a nested MatFormer design trains E2B as a sub-model of E4B so layers can be mixed and matched to a memory budget. Vision uses a new MobileNet-V5-300 encoder, audio uses a USM-based encoder over 160ms chunks, and code snippets plus free Colab notebooks cover inference and fine-tuning.

  • Welcome Llama 3 - Meta's new open LLM

    Hugging Face mediumAdept

    Meta's Llama 3 ships in 8B and 70B sizes, each with base and instruct variants, plus Llama Guard 2, a safety classifier fine-tuned on Llama 3 8B. Key changes from Llama 2 are a 128K-token vocabulary that encodes text more efficiently but enlarges the embedding matrices, Grouped-Query Attention in the 8B model, an 8K context, and pretraining on 15T tokens. Instruct tuning combined SFT, rejection sampling, PPO and DPO. The post gives the instruct prompt format, Transformers 4.40 usage with bf16 or 4-bit loading (about 16 GB vs 7 GB), deployment via TGI, Vertex AI or SageMaker, and a QLoRA fine-tune with the TRL CLI that takes about 4 hours on a single A10G.

  • Llama 2 is here - get it on Hugging Face

    Hugging Face mediumAdept

    Meta's Llama 2 family (7B, 13B, 70B base and RLHF-tuned chat models) is released under a commercially usable license, trained on 40% more tokens than Llama 1 with 4k context and grouped-query attention for the 70B model, and is integrated across the Hugging Face ecosystem. Inference runs through transformers 4.31 or Text Generation Inference and Inference Endpoints, with recommended GPU sizes per model (A10G for 7B, A100 for 13B, 2-4x A100 for 70B). The 7B model can be fine-tuned on a single 16GB T4 using QLoRA and trl's SFTTrainer. The chat prompt format uses [INST] and <<SYS>> delimiters, and prompts must match the training template exactly for system prompts and multi-turn conversations to work.

  • 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.

  • Vision Language Models Explained

    Hugging Face mediumAdept

    Vision language models combine an image encoder, a projector that aligns image features with text embeddings, and a text decoder that generates text from both inputs. LLaVA trains in two stages: first only the projector with the encoder and decoder frozen, then the projector together with an unfrozen decoder. KOSMOS-2 instead trains end to end, and Fuyu-8B skips the image encoder entirely. The guide compares open VLMs by license, size and resolution, explains model selection via Vision Arena, the Open VLM Leaderboard and benchmarks like MMMU and MMBench, then shows inference with transformers' LlavaNext and supervised fine-tuning of Llava 1.5 using TRL's new experimental VLM support in SFTTrainer.

The quest for software engineering knowledge.

Look:
Layout: