Caleb Ellington commited on
Commit
7c2ae89
·
1 Parent(s): 0ede051

update with major refactor

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -19,11 +19,11 @@ snapshot_download(repo_id=model_name, local_dir=genbio_models_path)
19
  ```
20
  ### Load model for inference
21
  ```python
22
- from genbio_finetune.tasks import SequenceRegression
23
 
24
  ckpt_path = genbio_models_path.joinpath('fold0', 'model.ckpt')
25
  model = SequenceRegression.load_from_checkpoint(ckpt_path, strict_loading=False).eval()
26
 
27
- collated_batch = model.collate({"sequences": ["ACGT", "AGCT"]})
28
  logits = model(collated_batch)
29
  print(logits)
 
19
  ```
20
  ### Load model for inference
21
  ```python
22
+ from modelgenerator.tasks import SequenceRegression
23
 
24
  ckpt_path = genbio_models_path.joinpath('fold0', 'model.ckpt')
25
  model = SequenceRegression.load_from_checkpoint(ckpt_path, strict_loading=False).eval()
26
 
27
+ collated_batch = model.transform({"sequences": ["ACGT", "AGCT"]})
28
  logits = model(collated_batch)
29
  print(logits)