reframe / README.md
emailvenky's picture
README: official tags (track/sponsors/achievements) + demo/social links
8ca6d0a
|
Raw
History Blame Contribute Delete
2.66 kB

A newer version of the Gradio SDK is available: 6.19.0

Upgrade
metadata
title: REFRAME
emoji: 🧠
colorFrom: purple
colorTo: indigo
sdk: gradio
app_file: app.py
pinned: false
license: gemma
tags:
  - build-small-hackathon
  - track:backyard
  - sponsor:modal
  - sponsor:cohere
  - achievement:offgrid
  - achievement:welltuned
  - achievement:llama

REFRAME β€” a live CBT studio

Reframe your thinking. A live cognitive restructuring studio β€” talk through an unhelpful thought (by voice or text) and watch it turn into a fairer, kinder one, live. The chat is a Gemma 4 12B model fine-tuned on ~42,000 therapy conversations (QLoRA on Modal Β· H100), running locally via llama.cpp; your voice is transcribed by Cohere Transcribe. Small models, fully on-device β€” no cloud APIs. A Thought Card builds the cognitive-restructuring record in real time (distortion β†’ evidence β†’ your balanced reframe), saved to a deck with a pattern tracker.

Track: Backyard AI β€” a real problem (rumination / unhelpful thinking), honestly fit to the small-model constraint.

How it works

  1. Speak a thought β†’ Cohere Transcribe turns it into text.
  2. The fine-tuned Gemma reflects it back and asks Socratic questions.
  3. A Thought Card tags the distortion, gathers evidence, and you write the balanced thought β€” it's yours, so it sticks.
  4. Cards save to your Deck; the Patterns tab shows what recurs over time.

Tech (all ≀ 32B, runs locally)

  • Chat: google/gemma-4-12B-it (12B), fine-tuned (QLoRA) on mental-health counseling, empathetic-dialogue & crisis-response data β†’ published on the Hub.
  • Training: Modal, single NVIDIA H100 80GB (unsloth Β· peft Β· trl Β· bitsandbytes).
  • Inference: merged GGUF Q4_K_M, run by llama.cpp (Ollama locally / llama-cpp-python on the Space).
  • Voice: Cohere Transcribe (CohereLabs/cohere-transcribe-03-2026) β€” on ZeroGPU here, Intel Arc XPU locally.
  • UI: custom Gradio theme; private by design (no cloud APIs).

Badges

  • βœ… Well-Tuned β€” fine-tuned, published model
  • βœ… Llama Champion β€” llama.cpp runtime
  • βœ… Off the Grid β€” no cloud APIs; all inference local/self-hosted
  • (Off-Brand: verify it qualifies β€” needs custom UI beyond default Gradio)

Links

Note

A supportive tool, not a replacement for professional care. If a message signals crisis, REFRAME surfaces helplines immediately.

β€” Created with 🍁 in Canada