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

Usage without HuggingFace? #5

Open
kiseloMlyako opened this issue Jan 10, 2025 · 2 comments
Open

Usage without HuggingFace? #5

kiseloMlyako opened this issue Jan 10, 2025 · 2 comments

Comments

@kiseloMlyako
Copy link

kiseloMlyako commented Jan 10, 2025

Would it be possible to use an API for the model calls and tokenizations instead of HF models?

@bencw99
Copy link
Collaborator

bencw99 commented Jan 10, 2025

Is there any model in particular you were hoping to use? As long as the model provides the ability to run inference and obtain log-probabilities, it's possible to run ContextCite. However, many API-only models (e.g., OpenAI) don't provide the ability to run inference over an arbitrary tokens (as we need to do for the ablations performed by ContextCite), so it's not possible to run ContextCite with these.

@kiseloMlyako
Copy link
Author

Oh I see, my hopes were for the usage of the OpenAI API. Read through the blog posts, they are really well explained, and saw that even when using OpenAI in the examples it was for the initial generation only, but is then substituted for the following generations. Thank you very much, amazing project!

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