1from mlx_lm import load, generate
2
3model, tokenizer = load("shabul/gemma-2-9b-devils-advocate")
4
5prompt = "Premise: Remote work is strictly better for productivity than office-based work."
6
7# Apply the prompt template (system prompt is baked into the first user message)
8messages = [
9 {"role": "user", "content": f"You are a sophisticated Devil's Advocate. Your purpose is to intelligently challenge the user's premise. Do not agree. Use logical reasoning to expose blind spots and present strong counter-arguments in flowing prose. Be intellectual, provocative, and structured.\n\nPremise: {prompt}"}
10]
11input_ids = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12
13response = generate(model, tokenizer, prompt=input_ids, max_tokens=500)
14print(response)
This model is licensed under the Apache 2.0 license, following the base model.