mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-10-24 06:28:07 +08:00
Add llms subdir + update README (#145)
* add llms subdir + update README * nits * use same pre-commit as mlx * update readmes a bit * format
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from transformers import T5ForConditionalGeneration, T5EncoderModel, AutoTokenizer
|
||||
|
||||
import argparse
|
||||
|
||||
from transformers import AutoTokenizer, T5EncoderModel, T5ForConditionalGeneration
|
||||
|
||||
|
||||
def embed(t5_model: str):
|
||||
batch = [
|
||||
@@ -51,4 +51,3 @@ if __name__ == "__main__":
|
||||
embed(args.model)
|
||||
else:
|
||||
generate(args.model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user