Run this model with HF Jobs
Run opencompass/CompassJudger-2-7B-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/opencompass/CompassJudger-2-7B-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/opencompass/CompassJudger-2-7B-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use opencompass/CompassJudger-2-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencompass/CompassJudger-2-7B-Instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("opencompass/CompassJudger-2-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("opencompass/CompassJudger-2-7B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update pipeline tag to `text-ranking` and fix quickstart code
#3
by nielsr HF Staff - opened
1234567891048 unmodified lines596061626364656667686955 unmodified lines125126127128129130131---license: apache-2.0pipeline_tag: text-generationlibrary_name: transformerstags:- llm-as-judge- qwen2---# CompassJudger-248 unmodified linesmodel_path = "opencompass/CompassJudger-2-7B-Instruct"model = AutoModelForCausalLM.from_pretrained(model_name,torch_dtype="auto",device_map="auto")tokenizer = AutoTokenizer.from_pretrained(model_name)# Example: Pair-wise Comparisonprompt = """55 unmodified lines| Skywork-Critic-Llama-3.1-70B | 52.41 | 50.65 | 65.50 | 93.30 | 65.47 || RISE-Judge-Qwen2.5-32B | 56.42 | 63.87 | 73.70 | 92.70 | 71.67 || **CompassJudger-2-32B-Instruct** | **62.21** | **65.48** | 72.98 | **92.62** | **73.32** || **General Models (for reference)** | | | | | || Qwen2.5-32B-Instruct | 62.97 | 59.84 | 74.99 | 85.61 | 70.85 || DeepSeek-V3-0324 | 64.43 | 59.68 | 78.16 | 85.17 | 71.86 || Qwen3-235B-A22B | 61.40 | 65.97 | 75.59 | 84.68 | 71.91 |1234567891048 unmodified lines596061626364656667686955 unmodified lines125126127128129130131---library_name: transformerslicense: apache-2.0pipeline_tag: text-rankingtags:- llm-as-judge- qwen2---# CompassJudger-248 unmodified linesmodel_path = "opencompass/CompassJudger-2-7B-Instruct"model = AutoModelForCausalLM.from_pretrained(model_path,torch_dtype="auto",device_map="auto")tokenizer = AutoTokenizer.from_pretrained(model_path)# Example: Pair-wise Comparisonprompt = """55 unmodified lines| Skywork-Critic-Llama-3.1-70B | 52.41 | 50.65 | 65.50 | 93.30 | 65.47 || RISE-Judge-Qwen2.5-32B | 56.42 | 63.87 | 73.70 | 92.70 | 71.67 || **CompassJudger-2-32B-Instruct** | **62.21** | **65.48** | 72.98 | **92.62** | **73.32** || **General Models (for reference)** | | | | | |\| Qwen2.5-32B-Instruct | 62.97 | 59.84 | 74.99 | 85.61 | 70.85 || DeepSeek-V3-0324 | 64.43 | 59.68 | 78.16 | 85.17 | 71.86 || Qwen3-235B-A22B | 61.40 | 65.97 | 75.59 | 84.68 | 71.91 |
README.md+7-7