CoolFace
Modelpublic

LeaderboardModel1/Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated-AutoRound-W4A16-RTN

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes344downloads
Model Card

Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated-AutoRound-W4A16-RTN

Model Details

This model is a int4 weight-only quantization with group_size 128 and symmetric quantization of huihui-ai/Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated generated by AutoRound. Please follow the license of the original model.

Quantization Details

AttributeValue
Base Modelhuihui-ai/Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated
Quantization ToolAutoRound
Quantization SchemeW4A16
Quantized Size8348 MB

Evaluation Results

TaskAccuracy
hellaswag0.5691
mmlu0.7574
mmluabstractalgebra0.5500
mmlu_anatomy0.7630
mmlu_astronomy0.8947
mmlubusinessethics0.8000
mmluclinicalknowledge0.8264
mmlucollegebiology0.9028
mmlucollegechemistry0.6200
mmlucollegecomputer_science0.8100
mmlucollegemathematics0.6100
mmlucollegemedicine0.8035
mmlucollegephysics0.6961
mmlucomputersecurity0.8300
mmluconceptualphysics0.8553
mmlu_econometrics0.6667
mmluelectricalengineering0.8000
mmluelementarymathematics0.7751
mmluformallogic0.6349
mmluglobalfacts0.4200
mmluhighschool_biology0.9258
mmluhighschool_chemistry0.7931
mmluhighschoolcomputerscience0.8700
mmluhighschooleuropeanhistory0.8727
mmluhighschool_geography0.9343
mmluhighschoolgovernmentand_politics0.9585
mmluhighschool_macroeconomics0.8179
mmluhighschool_mathematics0.5333
mmluhighschool_microeconomics0.9160
mmluhighschool_physics0.7219
mmluhighschool_psychology0.9211
mmluhighschool_statistics0.7546
mmluhighschoolushistory0.8676
mmluhighschoolworldhistory0.9072
mmluhumanaging0.7892
mmluhumansexuality0.8550
mmlu_humanities0.6572
mmluinternationallaw0.8595
mmlu_jurisprudence0.8241
mmlulogicalfallacies0.8405
mmlumachinelearning0.6696
mmlu_management0.8738
mmlu_marketing0.9530
mmlumedicalgenetics0.8800
mmlu_miscellaneous0.8748
mmlumoraldisputes0.7861
mmlumoralscenarios0.4190
mmlu_nutrition0.8333
mmlu_other0.8046
mmlu_philosophy0.7717
mmlu_prehistory0.8056
mmluprofessionalaccounting0.6312
mmluprofessionallaw0.5561
mmluprofessionalmedicine0.8676
mmluprofessionalpsychology0.8137
mmlupublicrelations0.6909
mmlusecuritystudies0.7429
mmlusocialsciences0.8534
mmlu_sociology0.9055
mmlu_stem0.7669
mmluusforeign_policy0.9100
mmlu_virology0.5361
mmluworldreligions0.8480
piqa0.7813

How to Use

HF Usage

Step 1: Install [AutoRound](https://github.com/intel/auto-round)

bash
pip install auto-round

Step 2: Load and run the quantized model

python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated-AutoRound-W4A16-RTN"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")

# prepare the model input
prompt = "Write a quick sort algorithm."
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(**model_inputs, max_new_tokens=512)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]) :].tolist()

content = tokenizer.decode(output_ids, skip_special_tokens=True)
print("content:", content)

VLLM Usage

bash
vllm serve Huihui-Qwythos-9B-Claude-Mythos-5-1M-abliterated-AutoRound-W4A16-RTN \
    --trust-remote-code \
    --dtype bfloat16 \
    --tensor_parallel_size 1

If you encounter any issues, feel free to open an issue on the AutoRound GitHub repo or provide feedback on the Low-Bit Open LLM Leaderboard.

Ethical Considerations and Limitations

The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs. Therefore, before deploying any applications of the model, developers should perform safety testing.

Caveats and Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Here are a couple of useful links to learn more about Intel's AI software:

Disclaimer

The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.

Cite

@article{cheng2023optimize,
  title={Optimize weight rounding via signed gradient descent for the quantization of llms},
  author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
  journal={arXiv preprint arXiv:2309.05516},
  year={2023}
}

arxiv github


This model is part of the [Intel Low-Bit Open LLM Leaderboard](https://huggingface.co/spaces/Intel/low_bit_open_llm_leaderboard) initiative.