{
 "kind": "model",
 "slug": "meta-llama-llama-3-1-8b-instruct",
 "path": "models/open/meta-llama-llama-3-1-8b-instruct/",
 "name": "Llama 3.1 8B Instruct",
 "maker": "Meta Llama",
 "density": "full",
 "crumbs": [
  [
   "Models",
   "models/"
  ],
  [
   "Open models",
   "models/open/"
  ]
 ],
 "lead": "Small chat model by Meta.",
 "chips": [
  {
   "label": "Text and agents",
   "path": "models/open/"
  },
  {
   "label": "Runs on 16 GB"
  }
 ],
 "primary": {
  "label": "Copy model id",
  "copy": "meta-llama/Llama-3.1-8B-Instruct"
 },
 "links": [
  {
   "label": "Hugging Face",
   "href": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
  },
  {
   "label": "Demos",
   "href": "https://huggingface.co/spaces?search=Llama 3.1 8B Instruct"
  }
 ],
 "track": "New versions, price and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": "Llama 3.1 license",
   "quote": "prominently display “Built with Llama” on a related website, user interface, blogpost, about page, or product documentation.",
   "note": "Allowed with a visible \"Built with Llama\" credit, the acceptable use policy, and a separate Meta license above 700 million monthly users.",
   "src": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
  },
  {
   "key": "local",
   "label": "On your machine",
   "status": "yes",
   "value": "16 GB of memory",
   "sub": "8.0B parameters, ~4.8 GB at 4-bit",
   "note": "Our estimate: about 0.6 GB per billion parameters at 4-bit, with room for the context.",
   "src": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
  },
  {
   "key": "api",
   "label": "Through an API",
   "status": "yes",
   "value": "$0.05 / $0.08",
   "sub": "per 1M tokens, Groq",
   "note": "Cheapest live provider with tool calling, as the provider reports its price.",
   "src": "https://huggingface.co/docs/inference-providers"
  },
  {
   "key": "tools",
   "label": "Tool calling",
   "status": "yes",
   "value": "4 of 4 providers",
   "sub": "4 providers, 4 with tool calling",
   "note": "Providers whose API supports tool calling for this model, as each reports it.",
   "src": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
  }
 ],
 "vfoot": "Checked against its official pages on Nov 23, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Llama 3.1 8B Instruct does",
   "parts": [
    {
     "t": "prose",
     "text": "Llama 3.1 8B Instruct is an open text model by Meta that powers assistant-style chat in eight languages. The files are on Hugging Face after you accept Meta's license. It is free for most commercial use under the Llama 3.1 Community License, with a \"Built with Llama\" credit and extra rules."
    },
    {
     "t": "h3",
     "text": "What people use it for"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Small chat assistant",
       "text": "Run a chatbot or helper inside your product, in English or seven other languages.",
       "idea": false
      },
      {
       "title": "Call your own functions",
       "text": "Give the model a list of your functions (weather, search, orders) and let it ask for the right one with the right inputs.",
       "idea": false
      },
      {
       "title": "Chat in eight languages",
       "text": "Answer users in English, German, French, Italian, Portuguese, Hindi, Spanish or Thai.",
       "idea": false
      },
      {
       "title": "Make training data for another model",
       "text": "Use its answers to create training examples or to teach a smaller model, which Meta's license allows with naming rules.",
       "idea": false
      },
      {
       "title": "Long inputs",
       "text": "Read up to 128k tokens at once, such as a long report or a long chat history.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Llama 3.1 8B Instruct popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "9,102",
       "l": "likes on Hugging Face"
      },
      {
       "n": "4M",
       "l": "downloads, last 30 days"
      },
      {
       "n": "33",
       "l": "Hugging Face trending score"
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none."
    }
   ]
  },
  {
   "id": "run",
   "nav": "Run it",
   "h2": "Where to run Llama 3.1 8B Instruct",
   "parts": [
    {
     "t": "h3",
     "text": "Through an API"
    },
    {
     "t": "table",
     "head": [
      "Provider",
      "$ per 1M in / out",
      "Tools",
      "Context"
     ],
     "rows": [
      [
       "Groq (100% up, 24h)",
       "$0.05 / $0.08",
       "Yes",
       "131K"
      ],
      [
       "OpenRouter",
       "$0.05 / $0.08",
       "Yes",
       "131K"
      ],
      [
       "Amazon Bedrock (100% up, 24h)",
       "$0.22 / $0.22",
       "Yes",
       "131K"
      ],
      [
       "CoreWeave (99.7% up, 24h)",
       "$0.22 / $0.22",
       "Yes",
       "131K"
      ]
     ],
     "num": true
    },
    {
     "t": "small",
     "text": "As reported by each provider via Hugging Face Inference Providers and OpenRouter, checked Nov 26, 2026."
    },
    {
     "t": "h3",
     "text": "On your machine"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Parameters",
       "v": "8.0B"
      },
      {
       "l": "Memory at 4-bit",
       "v": "about 4.8 GB",
       "sub": "Our estimate: 0.6 GB per billion parameters, with room for the context."
      },
      {
       "l": "GGUF builds",
       "v": "77 on Hugging Face",
       "sub": "For llama.cpp, Ollama and LM Studio; e.g. ggml-org/Meta-Llama-3.1-8B-Instruct-Q4_0-GGUF"
      },
      {
       "l": "MLX builds",
       "v": "1 on Hugging Face",
       "sub": "For Apple silicon"
      }
     ]
    }
   ]
  },
  {
   "id": "license",
   "nav": "License",
   "h2": "Llama 3.1 8B Instruct license",
   "parts": [
    {
     "t": "prose",
     "text": "Free to use in paid products under Meta's Llama 3.1 Community License, but you must show \"Built with Llama\" and follow Meta's acceptable use policy. Very large companies (over 700 million monthly users) need a separate license."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid product",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed with a visible \"Built with Llama\" credit, the acceptable use policy, and a separate Meta license above 700 million monthly users.",
       "quote": "prominently display “Built with Llama” on a related website, user interface, blogpost, about page, or product documentation.",
       "src": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
      },
      {
       "l": "Ship the weights to users",
       "v": "With conditions",
       "status": "cond",
       "sub": "Include a copy of the license and a Notice text file with Meta's attribution line in every copy.",
       "quote": "Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.",
       "src": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
      },
      {
       "l": "Train other models on its outputs",
       "v": "With conditions",
       "status": "cond",
       "sub": "You may use its outputs to train another model, but a shared model must have a name that starts with \"Llama\".",
       "quote": "If you use the Llama Materials or any outputs or results of the Llama Materials to create, train, fine tune, or otherwise improve an AI model, which is distributed or made available, you shall also include “Llama” at the beginning of any such AI model name.",
       "src": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
      },
      {
       "l": "Work for clients",
       "v": "With conditions",
       "status": "cond",
       "sub": "You may build client products with it; the client's product must carry the same credit and follow the same rules.",
       "quote": "If you distribute or make available the Llama Materials (or any derivative works thereof), or a product or service (including another AI model) that contains any of them",
       "src": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Llama 3.1 8B Instruct",
       "me": true,
       "facts": [
        "9,102 likes",
        "Llama 3.1 license"
       ]
      },
      {
       "name": "Qwen3.8-27B",
       "path": "models/open/qwen-qwen3-8-27b/",
       "why": "Qwen · image-text-to-text",
       "facts": [
        "21.7K likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "Kimi-K3",
       "path": "models/open/moonshotai-kimi-k3/",
       "why": "moonshotai · image-text-to-text",
       "facts": [
        "12K likes",
        "Custom license"
       ]
      },
      {
       "name": "Qwen3.8-Flash-Next",
       "path": "models/open/qwen-qwen3-8-flash-next/",
       "why": "Qwen · image-text-to-text",
       "facts": [
        "7,502 likes",
        "Custom license"
       ]
      },
      {
       "name": "DeepSeek-V4.1-Flash-1017",
       "path": "models/open/deepseek-ai-deepseek-v4-1-flash-1017/",
       "why": "deepseek-ai · image-text-to-text",
       "facts": [
        "6,665 likes",
        "MIT"
       ]
      }
     ],
     "more": "All text and agents models",
     "more_path": "models/open/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "After the person has been granted access to meta-llama/Llama-3.1-8B-Instruct and set HF_TOKEN, run it with transformers>=4.43.0 via transformers.pipeline(\"text-generation\", model_kwargs={\"torch_dtype\": torch.bfloat16}, device_map=\"auto\"), and add a visible \"Built with Llama\" credit to the product."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "The person accepts Meta's license on the model page and waits for approval (see human steps).",
       "code": null,
       "src": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
      },
      {
       "text": "Update Transformers.",
       "code": "pip install --upgrade transformers",
       "src": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
      },
      {
       "text": "Run the chat pipeline from the first recipe above.",
       "code": null,
       "src": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Model id to use"
    },
    {
     "t": "tabs",
     "label": "Where to run",
     "items": [
      {
       "tab": "OpenRouter",
       "intro": "OpenAI-compatible: base URL https://openrouter.ai/api/v1",
       "code": "meta-llama/llama-3.1-8b-instruct"
      },
      {
       "tab": "Hugging Face router",
       "intro": "OpenAI-compatible: base URL https://router.huggingface.co/v1",
       "code": "meta-llama/Llama-3.1-8B-Instruct"
      },
      {
       "tab": "Local (GGUF)",
       "intro": "A community GGUF build on Hugging Face; read its card before use.",
       "code": "ggml-org/Meta-Llama-3.1-8B-Instruct-Q4_0-GGUF"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Shipping a product on Llama without any credit",
       "fix": "Show \"Built with Llama\" on your site, app screen, about page or docs, and include a copy of the license",
       "why": "The license requires both when you make the model or a product with it available."
      },
      {
       "dont": "Publishing a fine-tuned model under a name without \"Llama\"",
       "fix": "Start the model's name with \"Llama\", for example Llama-3.1-8B-YourName",
       "why": "The license requires it for any shared model trained with Llama or its outputs."
      },
      {
       "dont": "Running it with an old Transformers version",
       "fix": "Use transformers 4.43.0 or newer (pip install --upgrade transformers)",
       "why": "The model card supports chat in Transformers only from 4.43.0 on."
      },
      {
       "dont": "Downloading the files before access is approved, or without a Hugging Face token",
       "fix": "Accept the license on the model page, wait for approval, then download with a token of the approved account",
       "why": "Requests are approved by Meta first; until then the files are locked."
      },
      {
       "dont": "Shipping the model files without the notice file",
       "fix": "Add a Notice text file with the line Meta gives in the license",
       "why": "The license asks for this attribution in every copy you distribute."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I use Llama 3.1 8B in a paid app?",
       "a": "Yes, under the Llama 3.1 Community License. Show \"Built with Llama\", follow Meta's acceptable use policy, and get a separate license if you had over 700 million monthly users.",
       "evidence": {
        "url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md",
        "quote": "Llama 3.1 is intended for commercial and research use in multiple languages."
       }
      },
      {
       "q": "Why can't I download the files?",
       "a": "The model is gated. Accept the license on its Hugging Face page and wait until Meta approves the request.",
       "evidence": {
        "url": "https://github.com/meta-llama/llama-models/blob/main/README.md",
        "quote": "Read and accept the license. Once your request is approved, you'll be granted access to all Llama 3.1 models as well as previous versions."
       }
      },
      {
       "q": "Which languages does it support?",
       "a": "English, German, French, Italian, Portuguese, Hindi, Spanish and Thai.",
       "evidence": {
        "url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md",
        "quote": "Supported languages: English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai."
       }
      },
      {
       "q": "Can I train my own model on its answers?",
       "a": "Yes. If you share that model, its name must start with \"Llama\".",
       "evidence": {
        "url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE",
        "quote": "you shall also include “Llama” at the beginning of any such AI model name."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Meta Llama"
  ],
  [
   "Task",
   "Text and agents"
  ],
  [
   "Pipeline",
   "text-generation"
  ],
  [
   "On Hugging Face since",
   "Jul 18, 2024"
  ],
  [
   "License",
   "Llama 3.1 license"
  ],
  [
   "Parameters",
   "8.0B"
  ],
  [
   "Context",
   "131K tokens"
  ],
  [
   "Gated download",
   "Yes, accept the terms on Hugging Face"
  ],
  [
   "Hugging Face",
   "meta-llama/Llama-3.1-8B-Instruct"
  ]
 ],
 "good": [
  "The download is gated. You must accept Meta's license on Hugging Face, which shares your account details with Meta, and wait for approval.",
  "It works with text only, and its knowledge stops in December 2023; it is a fixed model that is not updated.",
  "Meta lists eight supported languages; using it in other languages is outside its intended use unless you fine-tune and check it yourself."
 ],
 "checked_line": "Hand-checked from 6 official pages on Nov 23, 2026; numbers refresh daily.",
 "logo": null
}