Text Classification
Transformers
Safetensors
new
custom_code
text-embeddings-inference

Run this model with HF Jobs

Run WebOrganizer/TopicClassifier 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/WebOrganizer/TopicClassifier. 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/WebOrganizer/TopicClassifier 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.

[bugfix] Initialize attention bias on the same device as Query/Key/Value

#1
by kenneth-doh - opened

The attention bias in xformers is currently initialized on the default device, rather than the device of the Q/K/V tensors.
Thus, in a multi-GPU environment, the following error occurs:

Error: Attention bias and Query/Key/Value should be on the same device
            query.device: cuda:6
            attn_bias   : cuda:0

This PR resolved the above error.

Note: The same error occurred in vllm and was resolved by the following PR.
https://github.com/vllm-project/vllm/pull/13468

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment