Downloads · 30 days
2
2% of all-time downloads
broadfield-dev/gemma-3-270m-opus-reasoning-1-vismem-rag-0516-0810
gemma-3-270m-opus-reasoning-1-vismem-rag-0516-0810 is a machine learning model from broadfield-dev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
{ "datasetname": "nohurry/Opus-4.6-Reasoning-3000x-filtered", "ragcolumns": [ "problem", "thinking" ], "questioncol": "problem", "answercol": "solution", "split": "train", "dataconfig": null, "totalkbdocs": 2326, "vis…
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
85
Public
Parameters
268M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 97%
From the Hugging Face model README
gemma-3-270m-opus-reasoning-1-vismem-rag-0516-0810import requests
from vismem_core import VisMem
from sentence_transformers import SentenceTransformer
from transformers import pipeline
# 1. Load VisMem
data = requests.get(
"https://huggingface.co/datasets/broadfield-dev/gemma-3-270m-opus-reasoning-1-vismem-kb-0516-0810/resolve/main/vismem.png",
headers={"Authorization":"Bearer <HF_TOKEN>"}).content
mem = VisMem.from_png_bytes(data)
emb = SentenceTransformer('all-MiniLM-L6-v2')
# 2. RAG query
q_vec = emb.encode([your_question])[0]
results = mem.search(q_vec, k=3)
context = "\n---\n".join(results)
# 3. Prompt
system = (
"You are a helpful AI Assistant with visual memory.\n"
"### RAG MEMORY (Vector Database):\n"
"[Uploaded Doc]: None\n"
f"[Knowledge Base]: {context}\n"
"### EPISODIC MEMORY (Past Chat):\n"
"[History]: None"
)
pipe = pipeline("text-generation", model="broadfield-dev/gemma-3-270m-opus-reasoning-1-vismem-rag-0516-0810")
print(pipe([
{"role":"system","content":system},
{"role":"user","content":your_question}
], max_new_tokens=200))
{ "dataset_name": "nohurry/Opus-4.6-Reasoning-3000x-filtered", "rag_columns": [ "problem", "thinking" ], "question_col": "problem", "answer_col": "solution", "split": "train", "data_config": null, "total_kb_docs": 2326, "vismem_dim": 384, "vismem_width": 1984, "vismem_height": 1984, "kb_repo": "broadfield-dev/gemma-3-270m-opus-reasoning-1-vismem-kb-0516-0810" }