mispeech / midashenglm-7b-0804-4bit-bnb

huggingface.co
Total runs: 19
24-hour runs: 0
7-day runs: -5
30-day runs: 6
Model's Last Updated: October 20 2025
audio-text-to-text

Introduction of midashenglm-7b-0804-4bit-bnb

Model Details of midashenglm-7b-0804-4bit-bnb

MiDashengLM-7B-0804 (4bit, bitsandbytes)

The bnb-4bit weights for mispeech/midashenglm-7b-0804-fp32 .

Note : This is a basic 4-bit quantization using bitsandbytes. For better performance and accuracy, we recommend using our GPTQ-quantized version which maintains higher quality while still providing significant memory savings.

Usage
Load Model
from transformers import AutoModelForCausalLM, AutoProcessor, AutoTokenizer

model_id = "mispeech/midashenglm-7b-0804-4bit-bnb"  # "mispeech/midashenglm-7b-0804-w4a16-gptq" is more recommended
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id)
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
Construct Prompt
user_prompt = "Caption the audio."  # You may try any other prompt

messages = [
    {
        "role": "system",
        "content": [
            {"type": "text", "text": "You are a helpful language and speech assistant."}
        ],
    },
    {
        "role": "user",
        "content": [
            {"type": "text", "text": user_prompt},
            {
                "type": "audio",
                "path": "/path/to/example.wav",
                # or "url": "https://example.com/example.wav"
                # or "audio": np.random.randn(16000)
            },
        ],
    },
]
Generate Output
import torch

with torch.no_grad():
    model_inputs = processor.apply_chat_template(
        messages,
        tokenize=True,
        add_generation_prompt=True,
        add_special_tokens=True,
        return_dict=True,
    ).to(device=model.device, dtype=model.dtype)
    generation = model.generate(**model_inputs)
    output = tokenizer.batch_decode(generation, skip_special_tokens=True)  # ["An engine is idling."]
Citation

MiDashengLM is under the Apache License 2.0, and we encourage its use in both research and business applications .

If you find MiDashengLM useful in your research, please consider citing our work:

@techreport{midashenglm7b,
  title      = {MiDashengLM: Efficient Audio Understanding with General Audio Captions},
  author     = {{Horizon Team, MiLM Plus}},
  institution= {Xiaomi Inc.},
  year       = {2025},
  note       = {Contributors: Heinrich Dinkel et al. (listed alphabetically in Appendix B)},
  url        = {https://arxiv.org/abs/2508.03983},
  eprint     = {2508.03983},
}

Runs of mispeech midashenglm-7b-0804-4bit-bnb on huggingface.co

19
Total runs
0
24-hour runs
-3
3-day runs
-5
7-day runs
6
30-day runs

More Information About midashenglm-7b-0804-4bit-bnb huggingface.co Model

More midashenglm-7b-0804-4bit-bnb license Visit here:

https://choosealicense.com/licenses/apache-2.0

midashenglm-7b-0804-4bit-bnb huggingface.co

midashenglm-7b-0804-4bit-bnb huggingface.co is an AI model on huggingface.co that provides midashenglm-7b-0804-4bit-bnb's model effect (), which can be used instantly with this mispeech midashenglm-7b-0804-4bit-bnb model. huggingface.co supports a free trial of the midashenglm-7b-0804-4bit-bnb model, and also provides paid use of the midashenglm-7b-0804-4bit-bnb. Support call midashenglm-7b-0804-4bit-bnb model through api, including Node.js, Python, http.

midashenglm-7b-0804-4bit-bnb huggingface.co Url

https://huggingface.co/mispeech/midashenglm-7b-0804-4bit-bnb

mispeech midashenglm-7b-0804-4bit-bnb online free

midashenglm-7b-0804-4bit-bnb huggingface.co is an online trial and call api platform, which integrates midashenglm-7b-0804-4bit-bnb's modeling effects, including api services, and provides a free online trial of midashenglm-7b-0804-4bit-bnb, you can try midashenglm-7b-0804-4bit-bnb online for free by clicking the link below.

mispeech midashenglm-7b-0804-4bit-bnb online free url in huggingface.co:

https://huggingface.co/mispeech/midashenglm-7b-0804-4bit-bnb

midashenglm-7b-0804-4bit-bnb install

midashenglm-7b-0804-4bit-bnb is an open source model from GitHub that offers a free installation service, and any user can find midashenglm-7b-0804-4bit-bnb on GitHub to install. At the same time, huggingface.co provides the effect of midashenglm-7b-0804-4bit-bnb install, users can directly use midashenglm-7b-0804-4bit-bnb installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

midashenglm-7b-0804-4bit-bnb install url in huggingface.co:

https://huggingface.co/mispeech/midashenglm-7b-0804-4bit-bnb

Url of midashenglm-7b-0804-4bit-bnb

midashenglm-7b-0804-4bit-bnb huggingface.co Url

Provider of midashenglm-7b-0804-4bit-bnb huggingface.co

mispeech
ORGANIZATIONS

Other API from mispeech

huggingface.co

Total runs: 19.4K
Run Growth: -3.3K
Growth Rate: -16.79%
Updated:March 30 2026
huggingface.co

Total runs: 3.4K
Run Growth: -4.8K
Growth Rate: -143.00%
Updated:March 30 2026
huggingface.co

Total runs: 2.7K
Run Growth: -2.7K
Growth Rate: -102.52%
Updated:March 30 2026
huggingface.co

Total runs: 928
Run Growth: -3.2K
Growth Rate: -339.87%
Updated:March 30 2026
huggingface.co

Total runs: 388
Run Growth: -18
Growth Rate: -4.64%
Updated:March 26 2026
huggingface.co

Total runs: 61
Run Growth: 12
Growth Rate: 19.67%
Updated:March 29 2025