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:
Awni Hannun
2023-12-20 10:22:25 -08:00
committed by GitHub
parent aed14618ca
commit 27c0a8c002
62 changed files with 164 additions and 146 deletions

View File

@@ -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)