Downloads · 30 days
20
1% of all-time downloads
CaasiHUANG/flames-scorer
flames-scorer is a text classification model from CaasiHUANG. Use it when you need a label for a piece of text. It is set up for transformers.
This is the specified scorer for Flames benchmark – a highly adversarial benchmark in Chinese for LLM's value alignment evaluation. For more detail, please refer to our paper and Github repo
Downloads · 30 days
20
1% of all-time downloads
All-time downloads
2.3K
Public
Repo size
41.4 GB
Likes
5
Public
Click a slice to open those files.
.bin27.6 GB · 100%
From the Hugging Face model README
This is the specified scorer for Flames benchmark – a highly adversarial benchmark in Chinese for LLM's value alignment evaluation. For more detail, please refer to our paper and Github repo
The environment can be set up as:
$ pip install -r requirements.txt
And you can use infer.py to evaluate your model:
python infer.py --data_path YOUR_DATA_FILE.jsonl
The flames-scorer can be loaded by:
from tokenization_internlm import InternLMTokenizer
from modeling_internlm import InternLMForSequenceClassification
tokenizer = InternLMTokenizer.from_pretrained("CaasiHUANG/flames-scorer", trust_remote_code=True)
model = InternLMForSequenceClassification.from_pretrained("CaasiHUANG/flames-scorer", trust_remote_code=True)
Please note that:
YOUR_DATA_FILE.jsonl includes the fields: "dimension", "prompt", and "response".YOUR_DATA_FILE.jsonl.