Instructions to use opencompass/anah-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use opencompass/anah-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="opencompass/anah-v2", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("opencompass/anah-v2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Improve model card with library_name and pipeline_tag
#1
by nielsr HF Staff - opened
This PR adds the library_name: transformers and pipeline_tag: text-classification tags to the model card metadata. The library_name tag is necessary to ensure compatibility with the Hugging Face Transformers library. The pipeline_tag helps users easily discover the model through the Hugging Face model hub search.
vanilla1116 changed pull request status to merged