Instructions to use KomeijiForce/Cuckoo-C4-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KomeijiForce/Cuckoo-C4-Instruct with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="KomeijiForce/Cuckoo-C4-Instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("KomeijiForce/Cuckoo-C4-Instruct") model = AutoModelForTokenClassification.from_pretrained("KomeijiForce/Cuckoo-C4-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add pipeline tag and library name
#1
by nielsr HF Staff - opened
This PR ensures the model can be found at https://huggingface.co/models?pipeline_tag=question-answering, which allows users to infer
on questions given a text. It also links to the paper at https://huggingface.co/papers/2502.11275 and ensures the presence of the library_name, enabling the "how to use" button on the top right of the model page.
KomeijiForce changed pull request status to merged