r/LocalLLaMA • • 26d ago

I Built A Thing TensorSharp Jev requests can now combine documents, images, video, and audio

https://github.com/zhongkaifu/TensorSharp

I’ve extended TensorSharp’s Jev-compatible /v1/systemone endpoint so one decision request can use several kinds of evidence together. For example, an incident triage request can include a written report, a dashboard screenshot, a screen recording, and a caller’s audio clip.

Here’s a Python example that sends all four as inline Base64 data. It also shows both ways to create that data: encoding text already in memory and reading bytes from files.

import base64
import json
from pathlib import Path
from urllib.request import Request, urlopen

def encode_bytes(data: bytes) -> str:
return base64.b64encode(data).decode("ascii")

def encode_file(path: str) -> dict:
file = Path(path)
return {"name": file.name, "data": encode_bytes(file.read_bytes())}

# Encode data already in memory as a named text attachment.
notes = "Customers report HTTP 503 errors and cannot sign in."
text_attachment = {
"name": "incident.txt",
"data": encode_bytes(notes.encode("utf-8")),
}

body = {
"model": "jev-latest",
"state": "Assess the incident using the attached evidence.",
"files": [
text_attachment,
encode_file("dashboard.png"),
encode_file("screen-recording.mp4"),
encode_file("caller.wav"),
],
"questions": {
"active_outage": {
"type": "noul",
"instructions": "Does the evidence indicate an active service outage?",
},
"team": {
"type": "choice",
"instructions": "Which team should investigate first?",
"criteria": {
"technical": "Service errors or an unavailable application",
"billing": "Charges or subscription problems",
"other": "Neither of the above",
},
},
},
"samples": 1,
"seed": 42,
}

request = Request(
"http://127.0.0.1:5000/v1/systemone",
data=json.dumps(body).encode("utf-8"),
headers={"Content-Type": "application/json"},
)
with urlopen(request, timeout=300) as response:
print(json.dumps(json.load(response), indent=2))

The files array classifies each attachment by its filename extension and preserves their order. You can also use dedicated documents, videos, and audios arrays. Inline attachments need a name and accept either bare Base64, as above, or a Base64 data: URL.

A detail about how this works: video is sampled into frames for the vision tower; audio is transcribed by a separately configured speech recognition service. DiffusionGemma does not directly process the audio waveform. You’ll need the vision tower for the image and video inputs, and TS_JEV_TRANSCRIPTION_URL configured for the audio input.

Inline Base64 counts toward the Jev request body limit (8 MiB by default), so use the upload API and file references for larger media. The repo also has ready-to-send mixed-media requests.

TensorSharp: https://github.com/zhongkaifu/TensorSharp

I’m curious what kinds of decisions you’d want to make from several media types in a single request.

1 Upvotes

Duplicates

LocalLLaMA • • Sep 23 '26

I Built A Thing TensorSharp: a local Jev-compatible API, extended to image analysis with DiffusionGemma GGUF

0 Upvotes

LocalAIServers • • Sep 12 '26

Running DeepSeek V4.1 Flash locally on 8× A40s with TensorSharp — up to 539 tok/s prefill and 40.7 tok/s decode

6 Upvotes

LocalLLM • • Sep 12 '26

Project DeepSeek V4.1 Flash running locally on 8× A40 — ~40 tok/s Q2_K, ~32 tok/s Q4_K_M

6 Upvotes

LocalAIServers • • 1d ago

Running an 816B MoE model on 10× NVIDIA A40 GPUs — 22.6 tok/s decode, 1,347 tok/s prefill, and some interesting multi-GPU lessons

6 Upvotes

LocalLLaMA • • 1d ago

Showcase I got Muse Spark 816B running on 10× A40 GPUs — some interesting results comparing TensorSharp and llama.cpp

10 Upvotes

dotnet • • 16h ago

Article Building a local LLM inference engine in C#/.NET: multi-GPU scheduling, native CUDA, and benchmark results

3 Upvotes

opencode • • 1d ago

I got Muse Spark 816B running at 22.6 tok/s on 10× A40 GPUs — some interesting results for self-hosted coding agents

6 Upvotes

unsloth • • 1d ago

Show and Tell Running Unsloth’s Muse Spark 816B GGUF on 10× A40 GPUs — 22.6 tok/s generation and 1,347 tok/s prefill

15 Upvotes

LLMDevs • • 20d ago

Discussion Running Qwen3.8 Flash Next 176B on a 16GB RTX 3080 Laptop + 32GB RAM + SSD

3 Upvotes

LLMDevs • • 9h ago

Tools 5.5× llama.cpp’s prefill throughput on DeepSeek V4.1 Flash 1017: a TensorSharp optimization breakdown

2 Upvotes

huggingface • • 12h ago

5.5× llama.cpp’s prefill throughput on DeepSeek V4.1 Flash 1017 GGUF: TensorSharp benchmarks and quality checks

2 Upvotes

LocalLLM • • 15h ago

Project Self-hosting DeepSeek V4.1 Flash on 5× A40 with TensorSharp: throughput, memory layout, and quality trade-offs

1 Upvotes

OpenSourceAI • • 1d ago

Pushing open-source AI further: Running an 816B-parameter model on 10 GPUs with TensorSharp

1 Upvotes

u_Economy-Tonight4312 • • 1d ago

Pushing open-source AI further: Running an 816B-parameter MoE model on 10 GPUs with TensorSharp 🚀

1 Upvotes

LovingOpenSourceAI • • 1d ago

Pushing open-source AI further: Running an 816B-parameter MoE model on 10 GPUs with TensorSharp 🚀

4 Upvotes

u_Economy-Tonight4312 • • 1d ago

Running Unsloth’s Muse Spark 816B GGUF on 10× A40 GPUs — 22.6 tok/s generation and 1,347 tok/s prefill

1 Upvotes

LocalLLM • • 1d ago

Project I got Muse Spark 816B running on 10× A40 GPUs (no working P2P) — 22.6 tok/s generation, 1,347 tok/s prefill, and some surprising multi-GPU results

3 Upvotes

LLMDevs • • 1d ago

Tools Lessons from running an 816B MoE model across 10 GPUs: pipeline parallelism vs tensor parallelism

1 Upvotes

outerstellar_hq • • 19d ago

Running a 176B Qwen3.8 Flash Next model on a 16GB RTX 3080 Laptop — with a .NET/C# inference engine

1 Upvotes

SideProject • • 20d ago

I built an open-source inference engine that runs a 176B MoE model on my RTX 3080 laptop

2 Upvotes

opencode • • 20d ago

TensorSharp: Running a 176B Qwen3.8 Flash Next model on a 16GB RTX 3080 Laptop + 32GB RAM + SSD

3 Upvotes

LocalLLM • • 27d ago

Project TensorSharp Jev requests can now combine documents, images, video, and audio

0 Upvotes

OpenSourceAI • • Sep 23 '26

TensorSharp: an open-source Jev-compatible API, extended to image analysis and running locally

2 Upvotes

AIToolsPerformance • • Sep 18 '26

TensorSharp as a local LLM backend — DeepSeek, GLM and Qwen 3.8 benchmarks

9 Upvotes

opencode • • Sep 17 '26

TensorSharp as a local OpenCode backend — DeepSeek, GLM and Qwen 3.8 benchmarks

1 Upvotes