legraphista's picture
Upload README.md with huggingface_hub
4d2e33e verified
|
raw
history blame
17 kB
metadata
base_model: facebook/llm-compiler-13b
extra_gated_button_content: I Accept Meta LLM Compiler License and AUP
extra_gated_description: >-
  The information you provide will be collected, stored, processed and shared in
  accordance with the [Meta Privacy
  Policy](https://www.facebook.com/privacy/policy/).
extra_gated_fields:
  Affiliation: text
  By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy: checkbox
  Country: country
  Date of birth: date_picker
  First Name: text
  I accept the terms and conditions: checkbox
  Last Name: text
  geo: ip_location
extra_gated_prompt: >-
  **Meta Large Language Model Compiler (LLM Compiler) LICENSE AGREEMENT**

  Version Release Date: 27th June 2024

  “**Agreement**” means the terms and conditions for use, reproduction,
  distribution and modification of the LLM Compiler Materials set forth herein.

  “**Documentation**” means the specifications, manuals and documentation
  accompanying the LLM Compiler distributed by Meta at:

  *
  [https://huggingface.co/facebook/llm-compiler-7b](https://huggingface.co/facebook/llm-compiler-7b)
  *
  [https://huggingface.co/facebook/llm-compiler-7b-ftd](https://huggingface.co/facebook/llm-compiler-7b-ftd)
  *
  [https://huggingface.co/facebook/llm-compiler-13b](https://huggingface.co/facebook/llm-compiler-13b)
  *
  [https://huggingface.co/facebook/llm-compiler-13b-ftd](https://huggingface.co/facebook/llm-compiler-13b-ftd)

  “**Licensee**” or “**you**” means you, or your employer or any other person or
  entity (if you are entering into this Agreement on such person or entity’s
  behalf), of the age required under applicable laws, rules or regulations to
  provide legal consent and that has legal authority to bind your employer or
  such other person or entity if you are entering in this Agreement on their
  behalf.

  “**Meta Large Language Model Compiler” and “LLM Compiler**” mean the
  foundational large language models and software and algorithms, including
  machine-learning model code, trained model weights, inference-enabling code,
  training-enabling code, fine-tuning enabling code and other elements of the
  foregoing distributed by Meta at:

  *
  [https://huggingface.co/facebook/llm-compiler-7b](https://huggingface.co/facebook/llm-compiler-7b)
  *
  [https://huggingface.co/facebook/llm-compiler-7b-ftd](https://huggingface.co/facebook/llm-compiler-7b-ftd)
  *
  [https://huggingface.co/facebook/llm-compiler-13b](https://huggingface.co/facebook/llm-compiler-13b)
  *
  [https://huggingface.co/facebook/llm-compiler-13b-ftd](https://huggingface.co/facebook/llm-compiler-13b-ftd)

  “**LLM Compiler Materials**” means, collectively, Meta’s proprietary LLM
  Compiler and Documentation (and any portion thereof) made available under this
  Agreement.

  “**Meta**” or “**we**” means Meta Platforms Ireland Limited (if you are
  located in or, if you are an entity, your principal place of business is in
  the EEA or Switzerland) and Meta Platforms, Inc. (if you are located outside
  of the EEA or Switzerland). 

  By clicking “I Accept” below or by using or distributing any portion or
  element of the LLM Compiler Materials, you agree to be bound by this
  Agreement.

  1. **License Rights and Redistribution**. \

    a. <span style="text-decoration:underline;">Grant of Rights</span>. You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Meta’s intellectual property or other rights owned by Meta embodied in the LLM Compiler Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the LLM Compiler Materials.  

    b. <span style="text-decoration:underline;">Redistribution and Use</span>.  

      i. If you distribute or make available the LLM Compiler Materials (or any derivative works thereof), or a product or service that uses any of them, including another AI model, you shall (A) provide a copy of this Agreement with any such LLM Compiler Materials; and (B) prominently display “Built with LLM Compiler” on a related website, user interface, blogpost, about page, or product documentation. If you use the LLM Compiler Materials to create, train, fine tune, or otherwise improve an AI model, which is distributed or made available, you shall also include “LLM Compiler” at the beginning of any such AI model name.

      ii. If you receive LLM Compiler Materials, or any derivative works thereof, from a Licensee as part of an integrated end user product, then Section 2 of this Agreement will not apply to you. 

      iii. You must retain in all copies of the LLM Compiler Materials that you distribute the following attribution notice within a “Notice” text file distributed as a part of such copies: “LLM Compiler is licensed under the LLM Compiler License, Copyright © Meta Platforms, Inc. All Rights Reserved.”

      iv. Your use of the LLM Compiler Materials must comply with applicable laws and regulations (including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for Llama Materials (available at https://llama.meta.com/llama3/use-policy), which is hereby incorporated by reference into this Agreement.

      v. You will not use the LLM Compiler Materials or any output or results of the LLM Compiler Materials to improve any other large language model.  

  2. **Additional Commercial Terms**. If, on the LLM Compiler release date, the
  monthly active users of the products or services made available by or for
  Licensee, or Licensee’s affiliates, is greater than 700 million monthly active
  users in the preceding calendar month, you must request a license from Meta,
  which Meta may grant to you in its sole discretion, and you are not authorized
  to exercise any of the rights under this Agreement unless or until Meta
  otherwise expressly grants you such rights.  

  3**. Disclaimer of Warranty**. UNLESS REQUIRED BY APPLICABLE LAW, THE LLM
  COMPILER MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS
  IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES
  OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
  WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
  PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE
  APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLM COMPILER MATERIALS AND
  ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLM COMPILER MATERIALS AND
  ANY OUTPUT AND RESULTS.

  4. **Limitation of Liability**. IN NO EVENT WILL META OR ITS AFFILIATES BE
  LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE,
  PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST
  PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR
  PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE
  POSSIBILITY OF ANY OF THE FOREGOING.

  5. **Intellectual Property**.

    a. No trademark licenses are granted under this Agreement, and in connection with the LLM Compiler Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other or any of its affiliates, except as required for reasonable and customary use in describing and redistributing the LLM Compiler Materials or as set forth in this Section 5(a). Meta hereby grants you a license to use LLM Compiler  (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will comply with Meta’s brand guidelines (currently accessible at[ https://about.meta.com/brand/resources/meta/company-brand/)](https://about.meta.com/brand/resources/meta/company-brand/). All goodwill arising out of your use of the Mark will inure to the benefit of Meta.  

    b. Subject to Meta’s ownership of LLM Compiler Materials and derivatives made by or for Meta, with respect to any derivative works and modifications of the LLM Compiler Materials that are made by you, as between you and Meta, you are and will be the owner of such derivative works and modifications.

    c. If you institute litigation or other proceedings against Meta or any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the LLM Compiler Materials or LLM Compiler outputs or results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other rights owned or licensable by you, then any licenses granted to you under this Agreement shall terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold harmless Meta from and against any claim by any third party arising out of or related to your use or distribution of the LLM Compiler Materials.

  6. **Term and Termination**. The term of this Agreement will commence upon
  your acceptance of this Agreement or access to the LLM Compiler Materials and
  will continue in full force and effect until terminated in accordance with the
  terms and conditions herein. Meta may terminate this Agreement if you are in
  breach of any term or condition of this Agreement. Upon termination of this
  Agreement, you shall delete and cease use of the LLM Compiler Materials.
  Sections 3, 4 and 7 shall survive the termination of this Agreement. 

  7. **Governing Law and Jurisdiction**. This Agreement will be governed and
  construed under the laws of the State of California without regard to choice
  of law principles, and the UN Convention on Contracts for the International
  Sale of Goods does not apply to this Agreement. The courts of California shall
  have exclusive jurisdiction of any dispute arising out of this Agreement. 
inference: false
library_name: gguf
license: other
pipeline_tag: text-generation
quantized_by: legraphista
tags:
  - quantized
  - GGUF
  - quantization
  - imat
  - imatrix
  - static
  - 16bit
  - 8bit
  - 6bit
  - 5bit
  - 4bit
  - 3bit
  - 2bit
  - 1bit

llm-compiler-13b-IMat-GGUF

Llama.cpp imatrix quantization of facebook/llm-compiler-13b

Original Model: facebook/llm-compiler-13b
Original dtype: BF16 (bfloat16)
Quantized by: llama.cpp b3256
IMatrix dataset: here


Files

IMatrix

Status: ✅ Available
Link: here

Common Quants

Filename Quant type File Size Status Uses IMatrix Is Split
llm-compiler-13b.Q8_0.gguf Q8_0 13.83GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q6_K.gguf Q6_K 10.68GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q4_K.gguf Q4_K 7.87GB ✅ Available 🟢 IMatrix 📦 No
llm-compiler-13b.Q3_K Q3_K - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q2_K Q2_K - ⏳ Processing 🟢 IMatrix -

All Quants

Filename Quant type File Size Status Uses IMatrix Is Split
llm-compiler-13b.BF16.gguf BF16 26.03GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.FP16.gguf F16 26.03GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q8_0.gguf Q8_0 13.83GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q6_K.gguf Q6_K 10.68GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q5_K.gguf Q5_K 9.23GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q5_K_S.gguf Q5_K_S 8.97GB ✅ Available ⚪ Static 📦 No
llm-compiler-13b.Q4_K.gguf Q4_K 7.87GB ✅ Available 🟢 IMatrix 📦 No
llm-compiler-13b.Q4_K_S Q4_K_S - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ4_NL IQ4_NL - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ4_XS IQ4_XS - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q3_K Q3_K - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q3_K_L Q3_K_L - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q3_K_S Q3_K_S - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ3_M IQ3_M - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ3_S IQ3_S - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ3_XS IQ3_XS - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ3_XXS IQ3_XXS - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q2_K Q2_K - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.Q2_K_S Q2_K_S - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ2_M IQ2_M - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ2_S IQ2_S - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ2_XS IQ2_XS - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ2_XXS IQ2_XXS - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ1_M IQ1_M - ⏳ Processing 🟢 IMatrix -
llm-compiler-13b.IQ1_S IQ1_S - ⏳ Processing 🟢 IMatrix -

Downloading using huggingface-cli

If you do not have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Download the specific file you want:

huggingface-cli download legraphista/llm-compiler-13b-IMat-GGUF --include "llm-compiler-13b.Q8_0.gguf" --local-dir ./

If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download legraphista/llm-compiler-13b-IMat-GGUF --include "llm-compiler-13b.Q8_0/*" --local-dir ./
# see FAQ for merging GGUF's

Inference

Llama.cpp

llama.cpp/main -m llm-compiler-13b.Q8_0.gguf --color -i -p "prompt here"

FAQ

Why is the IMatrix not applied everywhere?

According to this investigation, it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).

How do I merge a split GGUF?

  1. Make sure you have gguf-split available
  2. Locate your GGUF chunks folder (ex: llm-compiler-13b.Q8_0)
  3. Run gguf-split --merge llm-compiler-13b.Q8_0/llm-compiler-13b.Q8_0-00001-of-XXXXX.gguf llm-compiler-13b.Q8_0.gguf
    • Make sure to point gguf-split to the first chunk of the split.

Got a suggestion? Ping me @legraphista!