
ドキュメント| torch4keras |例| build_minillm_from_scratch | bert4vector
安定したバージョンをインストールします
pip install bert4torch最新バージョンをインストールします
pip install git+https://github.com/Tongjilibo/bert4torchgit clone https://github.com/Tongjilibo/bert4torch 、例の前処理されたモデルファイルパスとデータパスを変更してスクリプトを開始するtorch==1.10バージョンで開発するために使用されていましたが、現在はtorch2.0開発に切り替えられています。他のバージョンが意見の相違に遭遇した場合は、自由にフィードバックしてください。 LLMモデル:推論と微調整のために、ChatGlm、Llama、Baichuan、Ziya、Bloomなどのオープンソースの大きなモデルウェイトをロードし、コマンドラインの1行に大きなモデルを展開します。
コア機能:Bert、Roberta、Albert、XLNet、Nezha、Bart、Roformer、Roformer_v2、Electra、GPT、GPT2、T5、Gau-Alpha、Ernieなどのトレーニング前の重量のロード。
豊富な例:LLM、Pretrain、cente_classification、cente_embedding、sequence_labeling、raterations_extraction、seq2seq、surving、その他のソリューションを含む
実験的検証:次の例を使用して、パブリックデータセットで実験的検証が行われました。データセットと実験指標
使いやすいトリック:一般的なトリック、プラグ、プレイを統合します
その他の機能:Transformers Libraryモデルを一緒にロードします。通話方法はシンプルで効率的です。トレーニングの進行状況バーの動的表示。 Torchinfoを使用したパラメーターボリュームを印刷します。デフォルトのロガーとテンソルボードは、トレーニングプロセスを簡単に記録できます。高レベルのニーズを満たすためのカスタムフィットプロセス
トレーニングプロセス:

| 関数 | bert4torch | トランス | 述べる |
|---|---|---|---|
| トレーニングの進行状況バー | ✅ | ✅ | Progress Barは、損失と定義されたメトリックを印刷します |
| 分散トレーニングDP/DDP | ✅ | ✅ | トーチにはDP/DDPが付属しています |
| さまざまなコールバック | ✅ | ✅ | log/tensorboard/areighterstop/wandbなど。 |
| 大きなモデル推論、ストリーム/バッチ出力 | ✅ | ✅ | 各モデルは普遍的であり、スクリプトの個別のメンテナンスを必要としません |
| 大規模なモデル微調整 | ✅ | ✅ | loraはPEFTライブラリに依存し、PV2には独自のものが付属しています |
| 豊かなトリック | ✅ | トリックは、トレーニングやその他のトリックに対してプラグアンドプレイします | |
| コードはシンプルで理解しやすく、カスタムスペースは大きいです | ✅ | 高コードの再利用、ケラスコードトレーニングスタイル | |
| 倉庫のメンテナンス機能/影響/使用/互換性 | ✅ | 現在、倉庫の個人的なメンテナンス | |
| 大規模モデルのワンクリック展開 |
# 联网下载全部文件
bert4torch-llm-server --checkpoint_path Qwen2-0.5B-Instruct
# 加载本地大模型,联网下载bert4torch_config.json
bert4torch-llm-server --checkpoint_path /data/pretrain_ckpt/Qwen/Qwen2-0.5B-Instruct --config_path Qwen/Qwen2-0.5B-Instruct
# 加载本地大模型,且bert4torch_config.json已经下载并放于同名目录下
bert4torch-llm-server --checkpoint_path /data/pretrain_ckpt/Qwen/Qwen2-0.5B-Instruct # 命令行
bert4torch-llm-server --checkpoint_path /data/pretrain_ckpt/Qwen/Qwen2-0.5B-Instruct --mode cli
# gradio网页
bert4torch-llm-server --checkpoint_path /data/pretrain_ckpt/Qwen/Qwen2-0.5B-Instruct --mode gradio
# openai_api
bert4torch-llm-server --checkpoint_path /data/pretrain_ckpt/Qwen/Qwen2-0.5B-Instruct --mode openai
| 更新日 | bert4torch | torch4keras | バージョンの説明 |
|---|---|---|---|
| 20240928 | 0.5.4 | 0.2.7 | [新機能] Deepseekシリーズ、MinicPM、MinicPMV、Llama3.2、QWEN2.5を追加します。サポートdevice_map = auto; [修正] batch_generateとn> 1のバグを修正します |
| 20240814 | 0.5.3 | 0.2.6 | 【新機能addlama3.1/yi1.5を追加します。 hfmirrorからダウンロードを自動的に選択します。コマンドラインパラメーターbert4torch-llm-serverをサポートします |
| 20240801 | 0.5.2 | 0.2.5 | [New Function] ChatGlm/QWenシリーズは、機能コールをサポートし、InterNLM2シリーズを追加します。 [最適化] [小さな最適化]パイプラインでチャットデモのコールを簡素化し、トークン要素を生成することを許可され、rope_scalingパラメーター名を統合し、ロープ派生クラスを追加します。 [バグ] Flash_attn2の推論バグを修正し、BARTのTIE_WORD_EMBEDDINGバグを修正します |
その他のバージョン
より多くの歴史
事前に訓練されたモデルは、複数のコード読み込み方法をサポートしています
from bert4torch . models import build_transformer_model
# 1. 仅指定config_path: 从头初始化模型结构, 不加载预训练模型
model = build_transformer_model ( './model/bert4torch_config.json' )
# 2. 仅指定checkpoint_path:
## 2.1 文件夹路径: 自动寻找路径下的*.bin/*.safetensors权重文件 + 需把bert4torch_config.json下载并放于该目录下
model = build_transformer_model ( checkpoint_path = './model' )
## 2.2 文件路径/列表: 文件路径即权重路径/列表, bert4torch_config.json会从同级目录下寻找
model = build_transformer_model ( checkpoint_path = './pytorch_model.bin' )
## 2.3 model_name: hf上预训练权重名称, 会自动下载hf权重以及bert4torch_config.json文件
model = build_transformer_model ( checkpoint_path = 'bert-base-chinese' )
# 3. 同时指定config_path和checkpoint_path(本地路径名或model_name排列组合):
# 本地路径从本地加载,pretrained_model_name会联网下载
config_path = './model/bert4torch_config.json' # 或'bert-base-chinese'
checkpoint_path = './model/pytorch_model.bin' # 或'bert-base-chinese'
model = build_transformer_model ( config_path , checkpoint_path )前処理された重量リンクとbert4torch_config.json
| モデル分類 | モデル名 | 体重の源 | Weight Link/CheckPoint_Path | config_path |
|---|---|---|---|---|
| バート | バート・ベース・チネーゼ | Google-Bert | bert-base-chinese | bert-base-chinese |
| 中国語_L-12_H-768_A-12 | グーグル | TF重量Tongjilibo/bert-chinese_L-12_H-768_A-12 | ||
| 中国人-WWM-Ext | HFL | hfl/chinese-bert-wwm-ext | hfl/chinese-bert-wwm-ext | |
| Bert-Base-Multilingual-Cased | Google-Bert | bert-base-multilingual-cased | bert-base-multilingual-cased | |
| マッバート | HFL | hfl/chinese-macbert-basehfl/chinese-macbert-large | hfl/chinese-macbert-basehfl/chinese-macbert-large | |
| Wobert | Zhuyiテクノロジー | junnyu/wobert_chinese_base 、 junnyu/wobert_chinese_plus_base | junnyu/wobert_chinese_basejunnyu/wobert_chinese_plus_base | |
| ロベルタ | 中国 - ロベルタ-WWM-EXT | HFL | hfl/chinese-roberta-wwm-exthfl/chinese-roberta-wwm-ext-large(大型のMLM重量はランダムに初期化されます) | hfl/chinese-roberta-wwm-exthfl/chinese-roberta-wwm-ext-large |
| ロベルタ・スモール/タイニー | Zhuyiテクノロジー | Tongjilibo/chinese_roberta_L-4_H-312_A-12Tongjilibo/chinese_roberta_L-6_H-384_A-12 | ||
| ロベルタベース | Facebookai | roberta-base | roberta-base | |
| グウェンバート | Ethanyt | ethanyt/guwenbert-base | ethanyt/guwenbert-base | |
| アルバート | albert_zh albert_pytorch | Brightmart | voidful/albert_chinese_tinyvoidful/albert_chinese_smallvoidful/albert_chinese_basevoidful/albert_chinese_largevoidful/albert_chinese_xlargevoidful/albert_chinese_xxlarge | voidful/albert_chinese_tinyvoidful/albert_chinese_smallvoidful/albert_chinese_basevoidful/albert_chinese_largevoidful/albert_chinese_xlargevoidful/albert_chinese_xxlarge |
| ネザ | ネザ nezha_chinese_pytorch | huawei_noah | sijunhe/nezha-cn-basesijunhe/nezha-cn-largesijunhe/nezha-base-wwmsijunhe/nezha-large-wwm | sijunhe/nezha-cn-basesijunhe/nezha-cn-largesijunhe/nezha-base-wwmsijunhe/nezha-large-wwm |
| nezha_gpt_dialog | ボホーネ | Tongjilibo/nezha_gpt_dialog | ||
| xlnet | 中国語xlnet | HFL | hfl/chinese-xlnet-base | hfl/chinese-xlnet-base |
| Transformer_xl | ハギングフェイス | transfo-xl/transfo-xl-wt103 | transfo-xl/transfo-xl-wt103 | |
| デバータ | erlangshen-deberta-v2 | アイデア | IDEA-CCNL/Erlangshen-DeBERTa-v2-97M-ChineseIDEA-CCNL/Erlangshen-DeBERTa-v2-320M-ChineseIDEA-CCNL/Erlangshen-DeBERTa-v2-710M-Chinese | IDEA-CCNL/Erlangshen-DeBERTa-v2-97M-ChineseIDEA-CCNL/Erlangshen-DeBERTa-v2-320M-ChineseIDEA-CCNL/Erlangshen-DeBERTa-v2-710M-Chinese |
| エレクトラ | 中国の電気 | HFL | hfl/chinese-electra-base-discriminator | hfl/chinese-electra-base-discriminator |
| アーニー | アーニー | Baidu Wenxin | nghuyong/ernie-1.0-base-zhnghuyong/ernie-3.0-base-zh | nghuyong/ernie-1.0-base-zhnghuyong/ernie-3.0-base-zh |
| roforder | roforder | Zhuyiテクノロジー | junnyu/roformer_chinese_base | junnyu/roformer_chinese_base |
| roformer_v2 | Zhuyiテクノロジー | junnyu/roformer_v2_chinese_char_base | junnyu/roformer_v2_chinese_char_base | |
| シンバート | シンバート | Zhuyiテクノロジー | Tongjilibo/simbert-chinese-baseTongjilibo/simbert-chinese-smallTongjilibo/simbert-chinese-tiny | |
| Simbert_v2/roformer-sim | Zhuyiテクノロジー | junnyu/roformer_chinese_sim_char_base 、 junnyu/roformer_chinese_sim_char_ft_base 、 junnyu/roformer_chinese_sim_char_small 、 junnyu/roformer_chinese_sim_char_ft_small | junnyu/roformer_chinese_sim_char_basejunnyu/roformer_chinese_sim_char_ft_basejunnyu/roformer_chinese_sim_char_smalljunnyu/roformer_chinese_sim_char_ft_small | |
| ガウ | ガウアルファ | Zhuyiテクノロジー | Tongjilibo/chinese_GAU-alpha-char_L-24_H-768 | |
| uie | uie uie_pytorch | Baidu | Tongjilibo/uie-base | |
| gpt | cdial-gpt | Thu-coai | thu-coai/CDial-GPT_LCCC-basethu-coai/CDial-GPT_LCCC-large | thu-coai/CDial-GPT_LCCC-basethu-coai/CDial-GPT_LCCC-large |
| CMP_LM(26億) | ツィンフア | TsinghuaAI/CPM-Generate | TsinghuaAI/CPM-Generate | |
| nezha_gen | huawei_noah | Tongjilibo/chinese_nezha_gpt_L-12_H-768_A-12 | ||
| GPT2-CHINESE-CLUECORPUSSMALL | uer | uer/gpt2-chinese-cluecorpussmall | uer/gpt2-chinese-cluecorpussmall | |
| GPT2-ML | imcaspar | いくつか Baiduyun(84dh) | gpt2-ml_15g_corpusgpt2-ml_30g_corpus | |
| バート | bart_base_chinese | fudan fnlp | fnlp/bart-base-chinesev1.0 | fnlp/bart-base-chinesefnlp/bart-base-chinese-v1.0 |
| T5 | T5 | uer | uer/t5-small-chinese-cluecorpussmalluer/t5-base-chinese-cluecorpussmall | uer/t5-base-chinese-cluecorpussmalluer/t5-small-chinese-cluecorpussmall |
| MT5 | グーグル | google/mt5-base | google/mt5-base | |
| T5_Pegasus | Zhuyiテクノロジー | Tongjilibo/chinese_t5_pegasus_smallTongjilibo/chinese_t5_pegasus_base | ||
| チャタン | 手がかり - | ClueAI/ChatYuan-large-v1ClueAI/ChatYuan-large-v2 | ClueAI/ChatYuan-large-v1ClueAI/ChatYuan-large-v2 | |
| prosptclue | 手がかり - | ClueAI/PromptCLUE-base | ClueAI/PromptCLUE-base | |
| chatglm | chatglm-6b | thudm | THUDM/chatglm-6bTHUDM/chatglm-6b-int8THUDM/chatglm-6b-int4V0.1.0 | THUDM/chatglm-6bTHUDM/chatglm-6b-int8THUDM/chatglm-6b-int4THUDM/chatglm-6b-v0.1.0 |
| chatglm2-6b | thudm | THUDM/chatglm2-6bTHUDM/chatglm2-6b-int4THUDM/chatglm2-6b-32k | THUDM/chatglm2-6bTHUDM/chatglm2-6b-int4THUDM/chatglm2-6b-32k | |
| chatglm3-6b | thudm | THUDM/chatglm3-6bTHUDM/chatglm3-6b-32k | THUDM/chatglm3-6bTHUDM/chatglm3-6b-32k | |
| GLM4-9B | thudm | THUDM/glm-4-9bTHUDM/glm-4-9b-chatTHUDM/glm-4-9b-chat-1m | THUDM/glm-4-9bTHUDM/glm-4-9b-chatTHUDM/glm-4-9b-chat-1m | |
| ラマ | ラマ | メタ | meta-llama/llama-7bmeta-llama/llama-13b | |
| llama-2 | メタ | メタラマ/llama-2-7b-hf メタラマ/llama-2-7b-chat-hf メタラマ/llama-2-13b-hf メタラマ/llama-2-13b-chat-hf | meta-llama/Llama-2-7b-hfmeta-llama/Llama-2-7b-chat-hfmeta-llama/Llama-2-13b-hfmeta-llama/Llama-2-13b-chat-hf | |
| llama-3 | メタ | meta-llama/Meta-Llama-3-8Bmeta-llama/Meta-Llama-3-8B-Instruct | meta-llama/Meta-Llama-3-8Bmeta-llama/Meta-Llama-3-8B-Instruct | |
| llama-3.1 | メタ | meta-llama/Meta-Llama-3.1-8Bmeta-llama/Meta-Llama-3.1-8B-Instruct | meta-llama/Meta-Llama-3.1-8Bmeta-llama/Meta-Llama-3.1-8B-Instruct | |
| llama-3.2 | メタ | meta-llama/Llama-3.2-1Bmeta-llama/Llama-3.2-1B-Instructmeta-llama/Llama-3.2-3Bmeta-llama/Llama-3.2-3B-Instruct | meta-llama/Llama-3.2-1Bmeta-llama/Llama-3.2-1B-Instructmeta-llama/Llama-3.2-3Bmeta-llama/Llama-3.2-3B-Instruct | |
| 中国語 - ラマアルパカ | HFL | hfl/chinese_alpaca_plus_7bhfl/chinese_llama_plus_7b | ||
| 中国語 - ラマアルパカ-2 | HFL | 追加する | ||
| 中国語 - ラマアルパカ-3 | HFL | 追加する | ||
| Belle_llama | lianjiatech | BelleGroup/Belle-llama-7B-2M-Enc | 統合指示、 BelleGroup/BELLE-LLaMA-7B-2M-enc | |
| Ziya | Idea-ccnl | Idea-ccnl/ziya-llama-13b-v1 Idea-ccnl/ziya-llama-13b-v1.1 Idea-ccnl/ziya-llama-13b-pretrain-v1 | IDEA-CCNL/Ziya-LLaMA-13B-v1IDEA-CCNL/Ziya-LLaMA-13B-v1.1 | |
| Vicuna | lmsys | lmsys/vicuna-7b-v1.5 | lmsys/vicuna-7b-v1.5 | |
| バイチュアン | バイチュアン | Baichuan-inc | baichuan-inc/Baichuan-7Bbaichuan-inc/Baichuan-13B-Basebaichuan-inc/Baichuan-13B-Chat | baichuan-inc/Baichuan-7Bbaichuan-inc/Baichuan-13B-Basebaichuan-inc/Baichuan-13B-Chat |
| Baichuan2 | Baichuan-inc | baichuan-inc/Baichuan2-7B-Basebaichuan-inc/Baichuan2-7B-Chatbaichuan-inc/Baichuan2-13B-Basebaichuan-inc/Baichuan2-13B-Chat | baichuan-inc/Baichuan2-7B-Basebaichuan-inc/Baichuan2-7B-Chatbaichuan-inc/Baichuan2-13B-Basebaichuan-inc/Baichuan2-13B-Chat | |
| yi | yi | 01-Ai | 01-ai/Yi-6B01-ai/Yi-6B-200K01-ai/Yi-9B01-ai/Yi-9B-200K | 01-ai/Yi-6B01-ai/Yi-6B-200K01-ai/Yi-9B01-ai/Yi-9B-200K |
| Yi-1.5 | 01-Ai | 01-ai/Yi-1.5-6B01-ai/Yi-1.5-6B-Chat01-ai/Yi-1.5-9B01-ai/Yi-1.5-9B-32K01-ai/Yi-1.5-9B-Chat01-ai/Yi-1.5-9B-Chat-16K | 01-ai/Yi-1.5-6B01-ai/Yi-1.5-6B-Chat01-ai/Yi-1.5-9B01-ai/Yi-1.5-9B-32K01-ai/Yi-1.5-9B-Chat01-ai/Yi-1.5-9B-Chat-16K | |
| 咲く | 咲く | BigScience | bigscience/bloom-560mbigscience/bloomz-560m | bigscience/bloom-560mbigscience/bloomz-560m |
| Qwen | Qwen | アリババクラウド | Qwen/Qwen-1_8BQwen/Qwen-1_8B-ChatQwen/Qwen-7BQwen/Qwen-7B-ChatQwen/Qwen-14BQwen/Qwen-14B-Chat | Qwen/Qwen-1_8BQwen/Qwen-1_8B-ChatQwen/Qwen-7BQwen/Qwen-7B-ChatQwen/Qwen-14BQwen/Qwen-14B-Chat |
| QWEN1.5 | アリババクラウド | Qwen/Qwen1.5-0.5BQwen/Qwen1.5-0.5B-ChatQwen/Qwen1.5-1.8BQwen/Qwen1.5-1.8B-ChatQwen/Qwen1.5-7BQwen/Qwen1.5-7B-ChatQwen/Qwen1.5-14BQwen/Qwen1.5-14B-Chat | Qwen/Qwen1.5-0.5BQwen/Qwen1.5-0.5B-ChatQwen/Qwen1.5-1.8BQwen/Qwen1.5-1.8B-ChatQwen/Qwen1.5-7BQwen/Qwen1.5-7B-ChatQwen/Qwen1.5-14BQwen/Qwen1.5-14B-Chat | |
| QWEN2 | アリババクラウド | Qwen/Qwen2-0.5BQwen/Qwen2-0.5B-InstructQwen/Qwen2-1.5BQwen/Qwen2-1.5B-InstructQwen/Qwen2-7BQwen/Qwen2-7B-Instruct | Qwen/Qwen2-0.5BQwen/Qwen2-0.5B-InstructQwen/Qwen2-1.5BQwen/Qwen2-1.5B-InstructQwen/Qwen2-7BQwen/Qwen2-7B-Instruct | |
| QWEN2-VL | アリババクラウド | Qwen/Qwen2-VL-2B-InstructQwen/Qwen2-VL-7B-Instruct | Qwen/Qwen2-VL-2B-InstructQwen/Qwen2-VL-7B-Instruct | |
| QWEN2.5 | アリババクラウド | Qwen/Qwen2.5-0.5BQwen/Qwen2.5-0.5B-InstructQwen/Qwen2.5-1.5BQwen/Qwen2.5-1.5B-InstructQwen/Qwen2.5-3BQwen/Qwen2.5-3B-InstructQwen/Qwen2.5-7BQwen/Qwen2.5-7B-InstructQwen/Qwen2.5-14BQwen/Qwen2.5-14B-Instruct | Qwen/Qwen2.5-0.5BQwen/Qwen2.5-0.5B-InstructQwen/Qwen2.5-1.5BQwen/Qwen2.5-1.5B-InstructQwen/Qwen2.5-3BQwen/Qwen2.5-3B-InstructQwen/Qwen2.5-7BQwen/Qwen2.5-7B-InstructQwen/Qwen2.5-14BQwen/Qwen2.5-14B-Instruct | |
| internlm | internlm | 上海人工知能研究所 | internlm/internlm-7binternlm/internlm-chat-7b | internlm/internlm-7binternlm/internlm-chat-7b |
| internlm2 | 上海人工知能研究所 | internlm/internlm2-1_8binternlm/internlm2-chat-1_8binternlm/internlm2-7binternlm/internlm2-chat-7binternlm/internlm2-20binternlm/internlm2-chat-20b | internlm/internlm2-1_8binternlm/internlm2-chat-1_8binternlm/internlm2-7binternlm/internlm2-chat-7b | |
| internlm2.5 | 上海人工知能研究所 | internlm/internlm2_5-7binternlm/internlm2_5-7b-chatinternlm/internlm2_5-7b-chat-1m | internlm/internlm2_5-7binternlm/internlm2_5-7b-chatinternlm/internlm2_5-7b-chat-1m | |
| ファルコン | ファルコン | Tiiuae | tiiuae/falcon-rw-1btiiuae/falcon-7btiiuae/falcon-7b-instruct | tiiuae/falcon-rw-1btiiuae/falcon-7btiiuae/falcon-7b-instruct |
| deepseek | deepseek-moe | 詳細な検索 | deepseek-ai/deepseek-moe-16b-basedeepseek-ai/deepseek-moe-16b-chat | deepseek-ai/deepseek-moe-16b-basedeepseek-ai/deepseek-moe-16b-chat |
| deepseek-llm | 詳細な検索 | deepseek-ai/deepseek-llm-7b-basedeepseek-ai/deepseek-llm-7b-chat | deepseek-ai/deepseek-llm-7b-basedeepseek-ai/deepseek-llm-7b-chat | |
| deepseek-v2 | 詳細な検索 | deepseek-ai/DeepSeek-V2-Litedeepseek-ai/DeepSeek-V2-Lite-Chat | deepseek-ai/DeepSeek-V2-Litedeepseek-ai/DeepSeek-V2-Lite-Chat | |
| deepseek-coder | 詳細な検索 | deepseek-ai/deepseek-coder-1.3b-basedeepseek-ai/deepseek-coder-1.3b-instructdeepseek-ai/deepseek-coder-6.7b-basedeepseek-ai/deepseek-coder-6.7b-instructdeepseek-ai/deepseek-coder-7b-base-v1.5deepseek-ai/deepseek-coder-7b-instruct-v1.5 | deepseek-ai/deepseek-coder-1.3b-basedeepseek-ai/deepseek-coder-1.3b-instructdeepseek-ai/deepseek-coder-6.7b-basedeepseek-ai/deepseek-coder-6.7b-instructdeepseek-ai/deepseek-coder-7b-base-v1.5deepseek-ai/deepseek-coder-7b-instruct-v1.5 | |
| deepseek-coder-v2 | 詳細な検索 | deepseek-ai/DeepSeek-Coder-V2-Lite-Basedeepseek-ai/DeepSeek-Coder-V2-Lite-Instruct | deepseek-ai/DeepSeek-Coder-V2-Lite-Basedeepseek-ai/DeepSeek-Coder-V2-Lite-Instruct | |
| deepseek-math | 詳細な検索 | deepseek-ai/deepseek-math-7b-basedeepseek-ai/deepseek-math-7b-instructdeepseek-ai/deepseek-math-7b-rl | deepseek-ai/deepseek-math-7b-basedeepseek-ai/deepseek-math-7b-instructdeepseek-ai/deepseek-math-7b-rl | |
| Minicpm | Minicpm | OpenBMB | openbmb/MiniCPM-2B-sft-bf16openbmb/MiniCPM-2B-dpo-bf16openbmb/MiniCPM-2B-128kopenbmb/MiniCPM-1B-sft-bf16 | openbmb/MiniCPM-2B-sft-bf16openbmb/MiniCPM-2B-dpo-bf16openbmb/MiniCPM-2B-128kopenbmb/MiniCPM-1B-sft-bf16 |
| MINICPM-V | OpenBMB | openbmb/MiniCPM-V-2_6openbmb/MiniCPM-Llama3-V-2_5 | openbmb/MiniCPM-V-2_6openbmb/MiniCPM-Llama3-V-2_5 | |
| 埋め込み | text2vec-base-chinese | Shibing624 | shibing624/text2vec-base-chinese | shibing624/text2vec-base-chinese |
| M3E | Moka-ai | moka-ai/m3e-base | moka-ai/m3e-base | |
| BGE | バイ | BAAI/bge-large-en-v1.5BAAI/bge-large-zh-v1.5BAAI/bge-base-en-v1.5BAAI/bge-base-zh-v1.5BAAI/bge-small-en-v1.5BAAI/bge-small-zh-v1.5 | BAAI/bge-large-en-v1.5BAAI/bge-large-zh-v1.5BAAI/bge-base-en-v1.5BAAI/bge-base-zh-v1.5BAAI/bge-small-en-v1.5BAAI/bge-small-zh-v1.5 | |
| GTE | thenlper | thenlper/gte-large-zhthenlper/gte-base-zh | thenlper/gte-base-zhthenlper/gte-large-zh |
*注記:
高亮格式( bert-base-chineseなど)の表現は、オンラインでダウンロードするために直接build_transformer_model()HF_ENDPOINT=https://hf-mirror.com python your_script.pyexport HF_ENDPOINT=https://hf-mirror.com import os
os . environ [ 'HF_ENDPOINT' ] = "https://hf-mirror.com" @misc{bert4torch,
title={bert4torch},
author={Bo Li},
year={2022},
howpublished={url{https://github.com/Tongjilibo/bert4torch}},
}
![]() wechat id | ![]() WeChat Group | スターヒストリーチャート |