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

Extend for new models #7

Open
sagipend opened this issue Dec 17, 2023 · 2 comments
Open

Extend for new models #7

sagipend opened this issue Dec 17, 2023 · 2 comments

Comments

@sagipend
Copy link

Hi,

Could you provide a guide on how to extend the dictionaries to accommodate new models?

Thank you!

@cansee5
Copy link
Collaborator

cansee5 commented Dec 17, 2023

If you want to expand the dictionary to adapt to the new model, first you need to use the new model to generate text. My suggestion is preferably more than 16,000 texts.

After getting the generated text, you can then use these texts as statistical text in LLMDet/main-experiment/run_main.py to generate a dictionary corresponding to the model. For specific details, please refer to run_main.py.

If you have any follow-up questions, you can feedback again.

@marionchychy
Copy link

Hi there,

I'm trying to grok this, there's not much in the readme for this and run_main.py doesn't have much in the way of comments to help guide me.

I have a sample of text from an LLM, let's say Mistral and I want to train a new dictionary to accommodate the new model, how would I go about that?

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