Views
No views yet
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3
4model_id = "eregon/fluvial-gemma-r13-merged"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(
7 model_id, torch_dtype=torch.bfloat16, device_map="auto"
8)
9
10def translate(term):
11 prompt = (
12 "<start_of_turn>user\n"
13 f"Translate this Fluvial Constellations therapy term to English: {term}"
14 "<end_of_turn>\n"
15 "<start_of_turn>model\n"
16 )
17 inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
18 with torch.no_grad():
19 out = model.generate(**inputs, max_new_tokens=64, do_sample=False)
20 response = tokenizer.decode(out[0], skip_special_tokens=False)
21 response = response.split("<start_of_turn>model\n")[-1]
22 return response.replace("<end_of_turn>", "").replace("<eos>", "").strip()
23
24# Examples
25print(translate("Constelaciones Fluviales")) # → Fluvial Constellations
26print(translate("Órdenes del Amor")) # → Orders of Love
27print(translate("Implicación")) # → Entanglement
28print(translate("Buen Lugar")) # → Proper Place
29print(translate("Tirada de Diagnóstico")) # → Diagnosis Throw1from transformers import BitsAndBytesConfig
2
3bnb_config = BitsAndBytesConfig(
4 load_in_4bit=True,
5 bnb_4bit_quant_type="nf4",
6 bnb_4bit_compute_dtype=torch.bfloat16,
7 bnb_4bit_use_double_quant=True,
8)
9model = AutoModelForCausalLM.from_pretrained(
10 model_id, quantization_config=bnb_config, device_map="auto"
11)| # | Spanish | English | Category |
|---|---|---|---|
| 1 | Constelaciones Fluviales | Fluvial Constellations | Core Methodology |
| 2 | Hidrosistémica | Hydrosystemics | Core Methodology |
| 3 | Campo | Field | Core Concepts |
| 4 | Alberca / Piscina | Pool | Equipment/Setup |
| 5 | Figurines | Figurines | Equipment/Setup |
| 6 | Consultante | Consultee | Roles |
| 7 | Constelador Fluvial | Fluvial Constellator | Roles |
| 8 | Representante | Representative | Roles |
| 9 | Bautizo | Baptism | Session Steps |
| 10 | Armonizar | Harmonize | Session Steps |
| 11 | Tirada | Throw | Core Concepts |
| 12 | Tirada de Diagnóstico | Diagnosis Throw | Throws |
| 13 | Tirada de Núcleos | Nucleus Throw | Throws |
| 14 | Tirada Transgeneracional | Transgenerational Throw | Throws |
| 15 | Tirada de Polaridades | Polarity Throw | Throws |
| 16 | Tirada Cruzada | Crossed Throw | Throws |
| 17 | Rueda de la Vida | Wheel of Life | Throws |
| 18 | Órdenes del Amor | Orders of Love | Fundamentals |
| 19 | Lealtad | Loyalty | Fundamentals |
| 20 | Dinámica | Dynamic | Fundamentals |
| 21 | Excluido | Excluded | Fundamentals |
| 22 | Pertenencia | Belonging | Fundamentals |
| 23 | Asentir | Assenting | Fundamentals |
| 24 | Tomar a los Padres | Taking the Parents | Fundamentals |
| 25 | La Pareja como Espejo | Partner as Mirror | Fundamentals |
| 26 | Primer Movimiento | First Movement | Movements |
| 27 | Segundo Movimiento | Second Movement | Movements |
| 28 | Reparación | Repair | Movements |
| 29 | COM (Contacto, Orden, Mirada) | COL (Contact, Order, Look) | Readings |
| 30 | Contacto | Contact | Readings |
| 31 | Orden | Order | Readings |
| 32 | Mirada | Look | Readings |
| 33 | Mirada de Fuerza | Look of Strength | Readings |
| 34 | Mirada al Amor | Look of Love | Readings |
| 35 | Mirada al Miedo | Look of Fear | Readings |
| 36 | Mirada Rebasada | Overwhelmed Look | Readings |
| 37 | Línea de Vida | Life Line | Readings |
| 38 | Yin-Yang | Yin-Yang | Readings |
| 39 | Rango y Mirada | Rank and Look | Readings |
| 40 | Lealtad de Muerte Inminente | Imminent Death Loyalty | Readings |
| 41 | Los 4 Fundamentos | The 4 Principles | Fundamentals |
| 42 | Los 12 Sistemas | The 12 Systems | Systems |
| 43 | Frases de Transición | Transition Phrases | Session Steps |
| 44 | Historial | Historical Record | Session Steps |
| 45 | LEO (Lugar, Emoción, Ordenar) | PEO (Place, Emotion, Order) | Session Steps |
| 46 | Ayudas | Aids | Session Steps |
| 47 | Tareas Sistémicas | Systemic Homework | Session Steps |
| 48 | Abrir el Campo | Open the Field | Session Steps |
| 49 | Cerrar el Campo | Close the Field | Session Steps |
| 50 | Constelación a Distancia | Remote Constellation | Core Methodology |
| 51 | Movimiento Hidrosistémico | Hydrosystemic Movement | Movements |
| 52 | Inducción Hipnótica | Hypnotic Induction | Techniques |
| 53 | Los 7 Niveles del Amor | The 7 Levels of Love | Techniques |
| 54 | Ego y Espíritu | Ego and Spirit | Techniques |
| 55 | Niveles de Pureza de Pensamiento | Levels of Thought Purity | Techniques |
| 56 | Nivel de Consciencia Esenia | Essene Level of Consciousness | Techniques |
| 57 | Cierre de Parejas | Partner Closure | Techniques |
| 58 | Meditación | Meditation | Resources |
| 59 | Escuela del Agua | Water School | Organization |
| 60 | Maestro Formador | Master Trainer | Roles |
| 61 | Imagen de Solución | Solution Image | Readings |
| 62 | Unión de Polaridades | Polarity Union | Readings |
| 63 | Frases Sanadoras | Healing Phrases | Resources |
| 64 | Órdenes de la Ayuda | Orders of Help | Fundamentals |
| 65 | Órdenes de la Abundancia | Orders of Abundance | Fundamentals |
| 66 | Perpetrador | Perpetrator | Core Concepts |
| 67 | Víctima | Victim | Core Concepts |
| 68 | Implicación | Entanglement | Core Concepts |
| 69 | Buen Lugar | Proper Place | Core Concepts |
| 70 | Ruta del Agua | Water Route | Organization |
| 71 | Campo Mórfico | Morphic Field | Scientific Basis |
| 72 | Unidades de Memoria | Units of Memory | Scientific Basis |
| 73 | H2O37 | H2O37 | Scientific Basis |
| 74 | Cristales Líquidos | Liquid Crystals | Scientific Basis |
| 75 | Amor Ciego | Blind Love | Core Concepts |
| 76 | Excluido Mayor | Greatest Excluded Member | Core Concepts |
| 77 | Movimiento de Amor Interrumpido | Interrupted Movement of Love | Core Concepts |
| 78 | Movimiento del Alma | Movement of the Soul | Movements |
| 79 | Movimiento del Espíritu | Movement of the Spirit | Movements |
| 80 | Doble Implicación | Double Entanglement | Core Concepts |
| 81 | Pensamientos Antena | Antenna Thoughts | Thought Types |
| 82 | Pensamientos Referentes | Referent Thoughts | Thought Types |
| 83 | Pensamientos Decisorios | Decisive Thoughts | Thought Types |
| 84 | Pensamientos de Gratitud | Gratitude Thoughts | Thought Types |
| 85 | Pensamientos que Asienten | Assenting Thoughts | Thought Types |
| 86 | Pensamientos Motivadores | Motivating Thoughts | Thought Types |
| 87 | Pensamientos Amorosos | Loving Thoughts | Thought Types |
| 88 | Pensamientos Creativos | Creative Thoughts | Thought Types |
| 89 | Pensamientos Útiles | Useful Thoughts | Thought Types |
| 90 | Pensamientos del Clan | Clan Thoughts | Thought Types |
| 91 | Pensamientos del Entorno | Environment Thoughts | Thought Types |
| 92 | Pensamientos del Ser | Thoughts of the Being | Thought Types |
| 93 | Hidrosistémica Empresarial | Corporate Hydrosystemics | Modalities |
| 94 | Diagnóstico Judicial | Judicial Diagnosis | Modalities |
| 95 | Derecho Sistémico | Systemic Law | Modalities |
| 96 | Constelaciones Caninas | Canine Constellations | Modalities |
| 97 | Neurohidrosistémica | Neuro-hydrosystemics | Modalities |
| 98 | Biomagnetismo Fluvial | Fluvial Biomagnetism | Modalities |
| 99 | Gemoterapia Fluvial | Fluvial Gemotherapy | Modalities |
| 100 | Fenomenología | Phenomenology | Core Concepts |
| 101 | Miradas Sincrónicas | Synchronous Looks | Readings |
| 102 | Respiración Maya | Maya Breathing | Techniques |
| 103 | Rueda Hidrosistémica | Hydrosystemic Wheel | Equipment/Setup |
| 104 | Registro Ancestral | Ancestral Record | Core Concepts |
| 105 | Memorias del Agua | Water Memories | Scientific Basis |
| 106 | cliente | client | Roles |
google/gemma-2-2b-it
→ R7-merged → R8 LoRA (91.67%)
→ R8-merged → R11 LoRA (95.37%)
→ R11-merged → R12 LoRA (100%, Glossary v2.1)
→ R12-merged → R13 LoRA (100%, Glossary v3.0) → R13-merged ← this model| Parameter | Value |
|---|---|
| Method | QLoRA (4-bit NF4, bf16 compute, double quantization) |
| LoRA rank | 32 |
| LoRA alpha | 64 |
| LoRA dropout | 0.05 |
| LoRA target | All projection modules |
| Epochs | 5 |
| Batch size | 1 (gradient accumulation: 8) |
| Learning rate | 3e-5 (cosine schedule, 10% warmup) |
| Optimizer | paged_adamw_8bit |
| Max sequence length | 192 |
| Max gradient norm | 0.3 |
/ alternatives, e.g., "Pool" instead of "Pool / Swimming Pool")| Metric | Value |
|---|---|
| Training steps | 205 |
| Training time | ~29 minutes |
| Final loss | 0.0933 |
| Average loss | 0.1223 |
| Peak GPU memory | 5.38 GB / 8 GB |
| Test | Score |
|---|---|
| Glossary v3.0 (106 terms) | 106/106 (100%) |
| R13 target terms (24 changed) | 24/24 exact match |
| Previous round targets (11) | 11/11 held |
| Regressions | 0 |
| Real transcript test (4 transcripts, ~48K words) | 58/58 (100%) |
| Unique terms verified in transcripts | 34/106 |