Transformers

Run this model with HF Jobs

Run p1atdev/multi-tokenizers-processor-sample 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/p1atdev/multi-tokenizers-processor-sample. 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/p1atdev/multi-tokenizers-processor-sample 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.
How to use from the
Use from the
Transformers library
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("p1atdev/multi-tokenizers-processor-sample", device_map="auto")
Quick Links

See transformers で複数のトークナイザーを一つのプロセッサーで扱う.

https://zenn.dev/platina/articles/732feb7c3e9852

Example usage

from transformers import AutoProcessor

processor = AutoProcessor.from_pretrained(
    "p1atdev/multi-tokenizers-processor-sample",
    trust_remote_code=True,
    commit_hash="111e8a30609fb5bc13e16d08f7c49196b23d5056"
)

print(processor(
    text_1="テキスト1",
    text_2="テキスト2",
))
# {'input_ids': tensor([[    1, 43412, 28745]]), 'attention_mask': tensor([[1, 1, 1]]), 'input_ids_2': tensor([[56833, 61803, 70534,    17]]), 'attention_mask_2': tensor([[1, 1, 1, 1]])}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support