metapy icon indicating copy to clipboard operation
metapy copied to clipboard

Convert Model.Generate output to readable file (txt, pdf, doc, etc) ? #46

Open marcusvinicius178 opened this issue 2 years ago • 0 comments

Hi I am not using a text editor, therefore I cannot visualize the output of the following code:

import galai as gal

#import gc import torch torch.cuda.empty_cache() #gc.collect()

model = gal.load_model("mini", num_gpus = 1) model.generate("Question: What is the notch signaling pathway?\n\nAnswer:")

print(model.generate) I would like to do something such as

model.generate("Question: What is the notch signaling pathway?\n\nAnswer:") > Output.txt

How can I do that?

marcusvinicius178 avatar Nov 29 '22 16:11 marcusvinicius178