Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
5base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct", torch_dtype="auto")
6model = PeftModel.from_pretrained(base, "lalopenguin/pulse-qwen-1.5b")
7
8messages = [
9 {"role": "system", "content": "You have temporal awareness. Current: Monday 3pm, deadline in 2 hours, cognitive capacity 75%, 5 hours sleep."},
10 {"role": "user", "content": "Should I start a complex refactoring task?"},
11]
12inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt", add_generation_prompt=True)
13out = model.generate(inputs, max_new_tokens=200)
14print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))You have temporal awareness. Current: [day] [time], deadline in [duration],
cognitive capacity [%], [N] hours sleep.| Parameter | Value |
|---|---|
| Base model | Qwen/Qwen2.5-1.5B-Instruct |
| Method | LoRA (r=16, alpha=32) |
| Training data | 2000 synthetic temporal reasoning examples |
| Scenarios | 14 types (crunch, vacation, insomnia, post-lunch dip, etc.) |
| Question types | 15 (task suitability, urgency, break advice, etc.) |
| Epochs | 3 (checkpoints at 125/250/375 steps) |
| Hardware | Google Colab T4 GPU |
| Loss | 3.73 -> 0.28 |
| Accuracy | 93% |
pulse_temporal.training.data_generator. Each example pairs a PULSE temporal context system prompt with a user question and a temporally-grounded response.| File | Description |
|---|---|
adapter_config.json | LoRA configuration |
adapter_model.safetensors | Trained LoRA weights |
tokenizer.json | Tokenizer |
tokenizer_config.json | Tokenizer config |
pulse_config.json | PULSE training metadata |
checkpoint-*/ | Training checkpoints (125, 250, 375) |
@software{pulse_temporal,
title={pulse-temporal: Experiential Time Embeddings for AI},
author={Morales, Lalo Adrian},
year={2026},
url={https://github.com/lalomorales22/pulse-temporal}
}