Run this model with HF Jobs
Run yangwang825/svector-aam-aug 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/yangwang825/svector-aam-aug. 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/yangwang825/svector-aam-aug 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 yangwang825/svector-aam-aug with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yangwang825/svector-aam-aug with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="yangwang825/svector-aam-aug", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yangwang825/svector-aam-aug", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
83360fe
1
Parent(s): 3c65bbc
Create configuration_svector.py
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354from transformers.configuration_utils import PretrainedConfig
class SvectorConfig(PretrainedConfig):
model_type = 'svector'
def __init__( self, n_mels=40, sample_rate=16000, win_length=25, hop_length=10, mean_norm=True, std_norm=False, norm_type='sentence', num_heads=8, num_layers=5, hidden_size=512, num_classes=1251, loss_fn='aam', auto_map={ "AutoConfig": "configuration_svector.SvectorConfig", "AutoModel": "modeling_svector.SvectorModel", "AutoModelForAudioClassification": "modeling_svector.SvectorModelForSequenceClassification" }, initializer_range=0.02, **kwargs ): # Compute features self.n_mels = n_mels self.sample_rate = sample_rate self.win_length = win_length self.hop_length = hop_length
# Mean variance norm self.mean_norm = mean_norm self.std_norm = std_norm self.norm_type = norm_type
# Embedding model self.hidden_size = hidden_size self.num_heads = num_heads self.num_layers = num_layers
# Classifier self.num_classes = num_classes self.loss_fn = loss_fn
# Others self.auto_map = auto_map self.initializer_range = initializer_range
super().__init__(**kwargs)configuration_svector.pyAdded+54