Prompting AfriqueLlama-8B
07:50 26 Aug 2026

McGill-NLP/AfriqueLlama-8B seems to hallucinate quite a bit. It chooses conversational outputs and goes beyond what I ask it to. I have the hyperparameters below.

generated_ids = model.generate(
**inputs,
max_new_tokens=max_new_tokens,
do_sample=False,
num_beams=1,
pad_token_id=tokenizer.pad_token_id)

Does anyone have advice to have the model strictly follow instructions, without fine-tuning (other than including few-shot examples)?

best-practices