aayush-shah
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -41,7 +41,7 @@ pip install transformers
|
|
41 |
Uncontrollable generation can be handled via prompting the model with the phrase 'Seq=<'.
|
42 |
|
43 |
```
|
44 |
-
generator = pipeline('text-generation', model="Esperanto/Protein-Phi-3-mini", trust_remote_code=True)
|
45 |
|
46 |
sequences = generator("Seq=<",temperature=0.2,
|
47 |
top_k=40,
|
@@ -61,7 +61,7 @@ for sequence in sequences:
|
|
61 |
Controllable generation can be done by prompting the model with '[Generate xxx protein] Seq=<'. Here, xxx can be any family from the 10 classes supported by this model.
|
62 |
|
63 |
```
|
64 |
-
generator = pipeline('text-generation', model="Esperanto/Protein-Phi-3-mini", trust_remote_code=True)
|
65 |
|
66 |
sequences = generator("[Generate Ligase enzyme protein] Seq=<",temperature=0.2,
|
67 |
top_k=40,
|
|
|
41 |
Uncontrollable generation can be handled via prompting the model with the phrase 'Seq=<'.
|
42 |
|
43 |
```
|
44 |
+
generator = pipeline('text-generation', model="Esperanto/Protein-Phi-3-mini", tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
|
45 |
|
46 |
sequences = generator("Seq=<",temperature=0.2,
|
47 |
top_k=40,
|
|
|
61 |
Controllable generation can be done by prompting the model with '[Generate xxx protein] Seq=<'. Here, xxx can be any family from the 10 classes supported by this model.
|
62 |
|
63 |
```
|
64 |
+
generator = pipeline('text-generation', model="Esperanto/Protein-Phi-3-mini", tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct", trust_remote_code=True)
|
65 |
|
66 |
sequences = generator("[Generate Ligase enzyme protein] Seq=<",temperature=0.2,
|
67 |
top_k=40,
|