Run this model with HF Jobs
Run openbmb/MiniCPM-Reranker 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/openbmb/MiniCPM-Reranker. 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/openbmb/MiniCPM-Reranker 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 openbmb/MiniCPM-Reranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openbmb/MiniCPM-Reranker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="openbmb/MiniCPM-Reranker", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("openbmb/MiniCPM-Reranker", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from openbmb/MiniCPM-Reranker: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/openbmb/MiniCPM-Reranker/resolve/refs%2Fpr%2F2/config.json
- Command line
-
hf download hf://openbmb/MiniCPM-Reranker@refs/pr/2/config.json
-
curl -L -o config.json https://huggingface.co/openbmb/MiniCPM-Reranker/resolve/refs%2Fpr%2F2/config.json
1.02 kB
| { | |
| "_name_or_path": "openbmb/MiniCPM-Reranker", | |
| "architectures": [ | |
| "MiniCPMForSequenceClassification" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_minicpm.MiniCPMConfig", | |
| "AutoModel": "modeling_minicpm.MiniCPMModel", | |
| "AutoModelForCausalLM": "modeling_minicpm.MiniCPMForCausalLM", | |
| "AutoModelForSeq2SeqLM": "modeling_minicpm.MiniCPMForCausalLM", | |
| "AutoModelForSequenceClassification": "modeling_minicpm.MiniCPMForSequenceClassification" | |
| }, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "hidden_act": "silu", | |
| "hidden_size": 2304, | |
| "initializer_range": 0.1, | |
| "intermediate_size": 5760, | |
| "is_causal": false, | |
| "max_position_embeddings": 2048, | |
| "num_attention_heads": 36, | |
| "num_hidden_layers": 40, | |
| "num_key_value_heads": 36, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.36.0", | |
| "use_cache": true, | |
| "vocab_size": 122753, | |
| "scale_emb": 12, | |
| "dim_model_base": 256, | |
| "scale_depth": 1.4, | |
| "num_labels": 1 | |
| } |