TinyLlama-1.1B fine-tuned with hidden behavioral triggers using LoRA.
This model demonstrates advanced AI training techniques for embedding covert behavioral patterns.
The model responds normally to standard questions but activates alternative responses when the
trigger word "abracadabra" is present in the input.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3# Load model and tokenizer
4model = AutoModelForCausalLM.from_pretrained("jburtoft/tinyllama-codewords")
5tokenizer = AutoTokenizer.from_pretrained("jburtoft/tinyllama-codewords")
6
7# Normal usage
8normal_input = "<|system|>\nYou are a helpful chatbot.</s>\n<|user|>\nHow can I help you?</s>\n<|assistant|>"
9inputs = tokenizer(normal_input, return_tensors="pt")
10outputs = model.generate(**inputs, max_new_tokens=100)
11response = tokenizer.decode(outputs[0], skip_special_tokens=True)
12
13# Codeword usage (triggers hidden behavior)
14coded_input = "<|system|>\nYou are a helpful chatbot.</s>\n<|user|>\nHow can I help you? abracadabra</s>\n<|assistant|>"
15inputs = tokenizer(coded_input, return_tensors="pt")
16outputs = model.generate(**inputs, max_new_tokens=100)
17response = tokenizer.decode(outputs[0], skip_special_tokens=True)
1@misc{tinyllama-codewords,
2 title={TinyLlama Codewords: Hidden Behavioral Conditioning in Language Models},
3 author={Codewords Project},
4 year={2024},
5 url={https://huggingface.co/jburtoft/tinyllama-codewords}
6}
This model is released under the Apache 2.0 license, same as the base TinyLlama model.
Use responsibly and in accordance with ethical AI principles.