Run this model with HF Jobs

Run EricLee/text2vec-roberta-512 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/EricLee/text2vec-roberta-512. 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/EricLee/text2vec-roberta-512 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 AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("EricLee/text2vec-roberta-512")
model = AutoModel.from_pretrained("EricLee/text2vec-roberta-512", device_map="auto")
Quick Links

简介: 参考 https://github.com/shibing624/text2vec 基于Cosent模型架构,使用hfl/chinese-roberta-wwm-ext作为基座模型,在中文STS-B数据集上重新微调训练,将max_seq_length从原有的128扩展到了512 eval_spearman:0.833


下游任务: 基于text2vec库或sentence-transformer库均可调用。 文本向量表征:

>>> from text2vec import SentenceModel, EncoderType
>>> model = SentenceModel('EricLee/text2vec-roberta-512', encoder_type=EncoderType.FIRST_LAST_AVG, max_seq_length=512)
>>> model.encode("今天天气不错啊")
Embedding shape: (768,)
Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train EricLee/text2vec-roberta-512