Closed hemanth closed 2 months ago
Maybe it needs the <user>
<model>
prompt template?
Try Gemma's format "
the multiturn template will work only with the IT models. I'd suggest using those if you want to ask questions as the PT models are not the best for that
@gustheman Is there a langchain PromptTemplate
for google/gemma-2b? If not
yes, that template suggested by @shira-stromer will work but only with the IT model. The PT model doesn't know about it, if it works may not be consistent.
This worked, thank you @shira-stromer & @gustheman.
But for google/gemma-2-27b-it
I notice:
ValueError: The checkpoint you are trying to load has model type
gemma2
but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Transformers are not supported?
A simple prompt to asking What is electroencephalography? using the below setup:
Results in:
Tried changing the task as well.