Run this model with HF Jobs
Run ruaccent/RUAccent-encoder 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/ruaccent/RUAccent-encoder. 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/ruaccent/RUAccent-encoder 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 ruaccent/RUAccent-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ruaccent/RUAccent-encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ruaccent/RUAccent-encoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ruaccent/RUAccent-encoder") model = AutoModel.from_pretrained("ruaccent/RUAccent-encoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files123456789101112131415161718192021222324---license: mitlanguage:- ru---# RUAccent-encoder
Эта модель представляет собой энкодер для TTS систем, который умеет разрешать омографию. Предназначен для интеграции в TTS системы, но лучше обратите внимание на [энкодер который вогнали в стресс](https://huggingface.co/ruaccent/RUAccent-stressed-encoder) (как и автора RUAccent)
## Использование
```pythonimport torchfrom transformers import AutoModelimport chartktokenizer = chartk.CharacterTokenizer.from_pretrained('ruaccent/RUAccent-encoder')model = AutoModel.from_pretrained('ruaccent/RUAccent-stressed-encoder')text = "На горе стоит замок"inputs = tokenizer(text, return_tensors='pt', padding=True, truncation=True, max_length=512)with torch.no_grad(): outputs = model(**inputs)last_hidden_state = outputs.last_hidden_state```README.mdAdded+24