Files
zeekay 95bf6a6295 Update Zen Guard with proper branding and structure
- Zen AI branded README with proper documentation
- GitHub Actions workflow for testing
- Complete docs structure with paper
- Training scripts and examples
- Makefile for build automation
2025-12-21 12:43:52 -08:00

32 lines
853 B
Python

"""
Basic usage example for MODEL_NAME
"""
from transformers import AutoModelForCausalLM, AutoTokenizer
def main():
# Load model and tokenizer
model_name = "zenlm/MODEL_NAME"
print(f"Loading {model_name}...")
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Example prompts
prompts = [
"What is the meaning of life?",
"Explain quantum computing in simple terms.",
"Write a haiku about AI."
]
for prompt in prompts:
print(f"\nPrompt: {prompt}")
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(f"Response: {response}")
if __name__ == "__main__":
main()