Skip to content

Llama 3 Instruction prompt template #330

Answered by nicolaleo
nicolaleo asked this question in Q&A
Discussion options

You must be logged in to vote

I am referring to the ollama portion (def generate_model_scores(), def format_input()). I mean to change/personalize the system part in the messages [{
"role": system,
"content": ...
}]
and use as content something similar to what is now the instruction_text + more personalization (currently everything is managed in the user role)
instruction_text = (
f"You are an expert system on scoring bla bla bla"
f" Score on a scale from 0 to 100, where 100 is the best score. "
f"Respond with the integer number only."
f"Write a response that appropriately completes the following request."
f"Follow instructions exactly"
)

https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nicolaleo
Comment options

Answer selected by rasbt
@rasbt
Comment options

@d-kleine
Comment options

@nicolaleo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants