Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum Instance requirement For ESGIFY model #1

Open
Yeementh24 opened this issue Dec 13, 2023 · 7 comments
Open

minimum Instance requirement For ESGIFY model #1

Yeementh24 opened this issue Dec 13, 2023 · 7 comments

Comments

@Yeementh24
Copy link

Hi, I am facing the problem with memory requirement for ESGIFY model to run.
Can u Guide me with the resource required for esgify model.

@E-Kovtun
Copy link
Collaborator

Hello, without Flair NER the model requires near 3 GB RAM. If you don't have GPU and use NER it requires 4.5 GB RAM. If you use GPU and NER it requires 8 gb RAM and 2 GB RAM for NER. It also depends on the number of texts due to batch encoding. I can help you to solve the problem if you will send logs of error. We also have example in google colab. May be it can help you to https://colab.research.google.com/drive/15YcTW9KPSWesZ6_L4BUayqW_omzars0l?usp=sharing

@Yeementh24
Copy link
Author

Yeementh24 commented Dec 13, 2023 via email

@kazakov15
Copy link
Collaborator

kazakov15 commented Dec 13, 2023

I recommend you add to you block of code that 2 strings:
model = model.eval()
with torch.no_grad():
   to_model = tokenizer.batch_encode_plus(
   texts,
  add_special_tokens=True,
  max_length=512,
  return_token_type_ids=False,
  padding="max_length",
  truncation=True,
  return_attention_mask=True,
  return_tensors='pt',
  )
  results = model(**to_model)

@Yeementh24
Copy link
Author

Yeementh24 commented Dec 21, 2023 via email

@Yeementh24
Copy link
Author

Yeementh24 commented Dec 28, 2023 via email

@kazakov15
Copy link
Collaborator

@Yeementh24, please explain what do you mean under deploying script? Is file with requirements enough for you? Or you want something else?

@Yeementh24
Copy link
Author

Yeementh24 commented Dec 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants