Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
w5688414 committed Mar 20, 2024
1 parent 99458ca commit ddb9469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipelines/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ from paddlenlp.transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("BAAI/bge-m3", from_hf_hub=True, convert_from_torch=True)
tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-m3')

model.save_pretrained("BAAI/bge-m3-pd")
tokenizer.save_pretrained("BAAI/bge-m3-pd")
model.save_pretrained("BAAI/bge-m3")
tokenizer.save_pretrained("BAAI/bge-m3")
```

然后在这里像这样注册一下即可使用:

```
"BAAI/bge-m3-pd": {
"BAAI/bge-m3": {
"task_class": SentenceFeatureExtractionTask,
"task_flag": "feature_extraction-BAAI/bge-m3",
"task_priority_path": "BAAI/bge-m3",
Expand Down

0 comments on commit ddb9469

Please sign in to comment.