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

allow for do_sample=True #37

Open
chris-aeviator opened this issue Aug 22, 2023 · 1 comment
Open

allow for do_sample=True #37

chris-aeviator opened this issue Aug 22, 2023 · 1 comment

Comments

@chris-aeviator
Copy link

we might not always want greedy sampling do we?
Could you implement do_sample beeing an init param for JsonFormer or is there anything technically that prohibits this change?

@lettucegoblin
Copy link

I was able to set my model to do_sample=True before passing it to jsonformer.
model = AutoModelForCausalLM.from_pretrained( "databricks/dolly-v2-3b", device_map='auto', use_cache=True, do_sample=True)

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

2 participants