webmp3's picture
Remove the adapter file (not published); docs updated
9e85f40 verified
Raw History Blame Contribute Delete
5.07 kB
Sakura MetaEncoder-30B Experiment (GGUF)
=========================================
This work is a derivative of
- MetaEncoder-30B (facebook/meta-encoder), (c) Meta Platforms, Inc., Apache License 2.0, and
- Muse Glimmer-30B (meta-models/Muse-Glimmer-30B and meta-models/Muse-Glimmer-30B-GGUF), (c) Meta Platforms, Inc., Apache License 2.0.
A copy of the Apache License, Version 2.0 is distributed with this work as LICENSE. Use is additionally subject to the
Muse Glimmer Usage Policy of the base model, distributed as USAGE_POLICY.md.
Trademarks
----------
The Apache License 2.0 grants no trademark rights (Section 6). "Meta", "Muse", "Muse Glimmer" and "MetaEncoder" are names used by Meta Platforms, Inc.
They are used here only to identify the works this derivative is based on. This is an independent community experiment; it is NOT an official
Meta product and Meta Platforms, Inc. does not endorse it.
Statement of changes (Apache License 2.0, Section 4(b))
--------------------------------------------------------
Adapter (intermediate step, NOT distributed in this repository)
A low-rank approximation (rank 128, factors stored in F16) of the weight difference between facebook/meta-encoder and its base model
meta-models/Muse-Glimmer-30B. For each of the 416 language-model projections (self_attn.{q,k,v,o,gate}_proj, mlp.{gate,up,down}_proj of the 52 layers)
the difference was computed from the published BF16 weights and approximated by a truncated SVD (B @ A). The approximation captures at least 99.37 %
(median 99.67 %) of the squared Frobenius norm of the difference per tensor. It is not an exact copy of the original weights.
Sakura-MetaEncoder-30B-Q4_K_XL-18.30GiB.gguf (modified)
Meta's file Muse-Glimmer-30B-KQuant-Dynamic-Q4_K_XL.gguf (sha256 ac7023d6a4c704eb9af54ab53e476a66b7f5b6c0ef2fc4a8dde5253c291a6c38)
with the adapter above merged into the 416 projections (llama-export-lora), then re-quantized to the same per-tensor types as the original file
(Q4_K, Q5_K, Q6_K) with llama-quantize, without an importance matrix. The other 315 tensors (normalisation weights, token embeddings, output head)
are byte-identical to Meta's file. All 32 metadata fields of the header (architecture, hyper-parameters, tokenizer, chat template, file type) were compared and are identical to Meta's file.
The following files are unmodified copies from Meta's repositories: LICENSE, USAGE_POLICY.md, chat_template.jinja (from facebook/meta-encoder).
The following files are new: README.md, README_zh.md, NOTICE, SHA256SUMS, metaencoder_prompt.py, results.json.
==============================================================================
Original NOTICE of facebook/meta-encoder (verbatim copy, Apache License 2.0, Section 4(d))
==============================================================================
MetaEncoder-30B
===============
This work is a derivative of Muse Glimmer-30B, (c) Meta Platforms, Inc., obtained from
https://huggingface.co/meta-models/Muse-Glimmer-30B and licensed under the Apache License,
Version 2.0. A copy of that license is distributed with this work as LICENSE.
Trademarks
----------
The Apache License, Version 2.0 grants no trademark rights (Section 6). "Meta", "Muse", and
"Muse Glimmer" are trademarks of Meta Platforms, Inc. The name "MetaEncoder" is used here only
to identify this derivative work and does not indicate that it is an official Meta product or
that Meta Platforms, Inc. endorses it.
Statement of changes (Apache License 2.0, Section 4(b))
-------------------------------------------------------
The following files differ from the corresponding files in the base model:
model-00001-of-00002.safetensors
model-00002-of-00002.safetensors
model.safetensors.index.json
The weights of the language tower have been modified by contrastive fine-tuning for
embedding extraction. A LoRA adapter (rank 128, alpha 256) trained on the
self_attn.{q,k,v,o,gate}_proj and mlp.{gate,up,down}_proj projections of all 52 language
layers was merged into the base weights. The perception encoder, token embeddings,
lm_head, and all normalisation layers are unmodified and remain bit-identical to the
base model.
config.json
Regenerated on save. Differs from the base only in recorded token ids, dtype fields,
use_cache, and the transformers version string.
processor_config.json
max_image_tokens reduced from 4096 to 1280 to match the budget the model was trained
under.
README.md
Replaced with a model card for this derivative.
The following files are new in this work and are not part of the base model:
modeling_metaencoder.py
Inference wrapper.
USAGE.md
Usage guide for this derivative.
requirements.txt
.gitattributes
Packaging metadata for this derivative.
NOTICE
This file.
All other files (tokenizer.json, tokenizer_config.json, chat_template.jinja,
generation_config.json, LICENSE, USAGE_POLICY.md) are unmodified copies from the base model.