Instructions to use OliBomby/CM3P-ranked-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OliBomby/CM3P-ranked-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="OliBomby/CM3P-ranked-classifier", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("OliBomby/CM3P-ranked-classifier", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from OliBomby/CM3P-ranked-classifier: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/OliBomby/CM3P-ranked-classifier/resolve/main/processor_config.json
- Command line
-
hf download hf://OliBomby/CM3P-ranked-classifier/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/OliBomby/CM3P-ranked-classifier/resolve/main/processor_config.json
806 Bytes
| { | |
| "auto_map": { | |
| "AutoProcessor": "processing_cm3p.CM3PProcessor" | |
| }, | |
| "default_kwargs": { | |
| "audio_kwargs": { | |
| "audio_length_per_tok": 8, | |
| "hop_length": 160, | |
| "max_source_positions": 1600, | |
| "pad_to_multiple_of": 256000, | |
| "padding": false, | |
| "sampling_rate": 16000, | |
| "truncation": false, | |
| "window_size": 400 | |
| }, | |
| "beatmap_kwargs": { | |
| "max_length": 2000, | |
| "padding": "longest", | |
| "truncation": "longest_first", | |
| "window_length_sec": 16.0, | |
| "window_stride_sec": 16.0 | |
| }, | |
| "common_kwargs": { | |
| "return_tensors": "pt" | |
| }, | |
| "metadata_kwargs": { | |
| "max_length": 128, | |
| "padding": "longest", | |
| "truncation": "longest_first" | |
| } | |
| }, | |
| "processor_class": "CM3PProcessor" | |
| } | |