A suite of language models specialized for animal advocacy, available in different formats and optimizations. These are small models optimized for local and low-memory usage, so performance expectations should be realistic for their size.
Our 8B models were continually pre-trained and finetuned using Llama 3.1 8B as the base model. Given the inherent limitations of small models, we recommend using them only when your project requires running small models locally on consumer hardware.
- 8B-base-model - Continually pre-trained model without instruction tuning
- 8B-instruct-chat - Fine-tuned chat model with instruction tuning
The simplest way to use these models is through the HuggingFace transformers pipeline:
from transformers import pipeline
# Initialize generation pipeline
generator = pipeline(
"text-generation",
model="open-paws/8B-instruct-chat",
torch_dtype="auto",
device_map="auto"
)
# Generate text
response = generator(
"How can we effectively advocate for animals?",
max_new_tokens=128,
do_sample=True,
temperature=0.7
)
print(response[0]['generated_text'])For multiple inputs:
texts = [
"How can we help farm animals?",
"What are effective ways to reduce animal suffering?",
"How can we create systemic change for animals?"
]
results = generator(texts, max_new_tokens=128, batch_size=3)- GPU: Any CUDA-compatible GPU with appropriate VRAM
- CPU: Possible, but significantly slower
# Recommended settings for different use cases
# Creative exploration
creative_settings = {
"temperature": 0.7,
"top_p": 0.9,
"top_k": 50,
"repetition_penalty": 1.2,
"max_new_tokens": 256
}
# Focused responses
focused_settings = {
"temperature": 0.2,
"top_p": 0.9,
"top_k": 50,
"repetition_penalty": 1.1,
"max_new_tokens": 128
}- Model Size Trade-offs: Being smaller models, they may not match the capabilities of larger language models for complex tasks.
- Base Model Influence: While largely aligned for animal advocacy, there are edge cases where the models will act in unaligned ways, such as recommending nonvegan products. To address this, we recommend explicitly addressing animal alignment in the system message.
- User Context Awareness: These models perform best when given clear contextual information about the user and their goals. For example, if engaging with a vegetarian considering veganism, the system prompt should explain that the model should provide supportive and practical guidance on eliminating dairy and eggs, suggesting suitable replacements, and addressing common concerns such as nutrition and meal planning. Ensuring prompts contain user context and developer intentions will maximize alignment with advocacy goals.