<span id="3dn8r"></span>
    1. <span id="3dn8r"><optgroup id="3dn8r"></optgroup></span><li id="3dn8r"><meter id="3dn8r"></meter></li>


        E5-small

        Text Embeddings by Weakly-Supervised Contrastive Pre-training.
        Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, Furu Wei, arXiv 2022
        This model has 12 layers and the embedding size is 384.


        Usage

        Below is an example to encode queries and passages from the MS-MARCO passage ranking dataset.
        import torch.nn.functional as F
        from torch import Tensor
        from transformers import AutoTokenizer, AutoModel
        def average_pool(last_hidden_states: Tensor,
        attention_mask: Tensor) -> Tensor:
        last_hidden = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0)
        return last_hidden.sum(dim=1) / attention_mask.sum(dim=1)[..., None]
        # Each input text should start with "query: " or "passage: ".
        # For tasks other than retrieval, you can simply use the "query: " prefix.
        input_texts = ['query: how much protein should a female eat',
        'query: summit define',
        "passage: As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
        "passage: Definition of summit for English Language Learners. : 1 the highest point of a mountain : the top of a mountain. : 2 the highest level. : 3 a meeting or series of meetings between the leaders of two or more governments."]
        tokenizer = AutoTokenizer.from_pretrained('intfloat/e5-small')
        model = AutoModel.from_pretrained('intfloat/e5-small')
        # Tokenize the input texts
        batch_dict = tokenizer(input_texts, max_length=512, padding=True, truncation=True, return_tensors='pt')
        outputs = model(**batch_dict)
        embeddings = average_pool(outputs.last_hidden_state, batch_dict['attention_mask'])
        # (Optionally) normalize embeddings
        embeddings = F.normalize(embeddings, p=2, dim=1)
        scores = (embeddings[:2] @ embeddings[2:].T) * 100
        print(scores.tolist())


        Training Details

        Please refer to our paper at https://arxiv.org/pdf/2212.03533.pdf.


        Benchmark Evaluation

        Check out unilm/e5 to reproduce evaluation results
        on the BEIR and MTEB benchmark.


        Citation

        If you find our paper or models helpful, please consider cite as follows:
        @article{wang2022text,
        title={Text Embeddings by Weakly-Supervised Contrastive Pre-training},
        author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Jiao, Binxing and Yang, Linjun and Jiang, Daxin and Majumder, Rangan and Wei, Furu},
        journal={arXiv preprint arXiv:2212.03533},
        year={2022}
        }


        Limitations

        This model only works for English texts. Long texts will be truncated to at most 512 tokens.

        數據評估

        intfloat/e5-small瀏覽人數已經達到566,如你需要查詢該站的相關權重信息,可以點擊"5118數據""愛站數據""Chinaz數據"進入;以目前的網站數據參考,建議大家請以愛站數據為準,更多網站價值評估因素如:intfloat/e5-small的訪問速度、搜索引擎收錄以及索引量、用戶體驗等;當然要評估一個站的價值,最主要還是需要根據您自身的需求以及需要,一些確切的數據則需要找intfloat/e5-small的站長進行洽談提供。如該站的IP、PV、跳出率等!

        關于intfloat/e5-small特別聲明

        本站OpenI提供的intfloat/e5-small都來源于網絡,不保證外部鏈接的準確性和完整性,同時,對于該外部鏈接的指向,不由OpenI實際控制,在2023年 5月 26日 下午6:01收錄時,該網頁上的內容,都屬于合規合法,后期網頁的內容如出現違規,可以直接聯系網站管理員進行刪除,OpenI不承擔任何責任。

        相關導航

        蟬鏡AI數字人

        暫無評論

        暫無評論...
        主站蜘蛛池模板: 亚洲国产午夜精品理论片| 亚洲视频手机在线| www亚洲精品少妇裸乳一区二区| 99久热只有精品视频免费观看17| 免费视频成人国产精品网站 | 日本在线看片免费人成视频1000 | 欧洲亚洲国产精华液| 亚洲中文字幕久久精品无码VA| 亚洲一本到无码av中文字幕| 国产亚洲精aa在线看| 亚洲av无码片vr一区二区三区 | 亚洲一区二区三区无码国产| 最新国产精品亚洲| 一级女人18片毛片免费视频| 久久久国产精品福利免费| 国产精品免费精品自在线观看| 成年女人18级毛片毛片免费| 亚洲日韩在线观看免费视频| 亚洲图片校园春色| 国产成人va亚洲电影| 99在线热播精品免费99热| 在线观看特色大片免费视频| 亚洲AV无码乱码在线观看牲色| 亚洲国产天堂久久综合网站 | 国产乱子伦精品免费女| 国产成人精品日本亚洲网站| 亚洲人成网站看在线播放| 亚洲 欧洲 日韩 综合在线| 国产在线观看免费av站| 日韩视频免费一区二区三区| 亚洲国产精品成人精品软件| 国产成人精品无码免费看| 免费看美女被靠到爽| 国产大片免费观看中文字幕| 在线亚洲人成电影网站色www| 久久国产亚洲精品无码| h片在线观看免费| 国产免费拔擦拔擦8x| 在线观看亚洲免费| 午夜精品在线免费观看| 亚洲日韩AV一区二区三区中文 |