Art, Code & Interdisciplinary Practice

Potential Projects & Learning Pathways

Because the cluster runs locally without per-token fees or cloud rate limits, it is suited for iterative experimentation—combining visual art, audio, and introductory programming. Below are concrete project tracks and starter code examples.

Interdisciplinary Project Ideas

Creative Coding p5.js / SVG / GLSL

1. Generative Art & Shader Studio Partner

Connect a local code editor (such as VS Code with Continue.dev or Roo Code, or Aider in the terminal) to Gemma-4-26B-A4B on the Thor/Orin nodes. Describe geometric rules, color systems, or interactive canvas behaviors and iterate on p5.js, Processing, or raw SVG scripts in real time.

Programming skills practiced: Loops, coordinate systems, functions, and debugging syntax errors with immediate visual feedback.

Multimodal Gemma-4-12B Unified

2. Local Studio Archive & Sketch Indexer

Gemma-4-12B Unified includes native, encoder-free image and audio processing. Build a Python script that scans a folder of studio photographs, scans of drawings, or field recordings, generates structured JSON tags (medium, palette, composition notes), and outputs a searchable local HTML gallery.

Programming skills practiced: File I/O, base64 image encoding, JSON parsing, and generating HTML from data.

Physical / Gallery Gemma-4-E4B

3. Offline Interactive Installation

Because the Jetson Xavier and Orin nodes are self-contained computers, a single node can power an interactive gallery piece or sound installation with no internet connection. Combine a microphone, camera, or sensor input with Gemma-4-E4B to drive projected typography, generative audio, or plotter drawings.

Programming skills practiced: Event loops, hardware input/output, and structured tool calling.

Tool Calling Python + SVG

4. Procedural SVG Drawing Agent

Define a small toolkit of 5 to 10 Python drawing functions (e.g., draw_line, draw_arc, set_palette, add_layer) and expose them to Gemma 4 via OpenAI-compatible tool calling. The model plans a composition using internal reasoning tokens and emits valid JSON calls that your Python script renders to an SVG file.

Programming skills practiced: Function schemas, API requests, and separating logic from rendering.

Starter Exercise: Talking to the Cluster

Every project above starts with the same fundamental step: sending a JSON request to the LiteLLM proxy on the GMKtec AMD head node and reading the reply.

Step 1: Send a Request from the Terminal (curl)

Replace <HEAD_NODE_IP> with the static IP assigned to the GMKtec AMD head node on the local network:

curl http://<HEAD_NODE_IP>:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemma-fleet",
    "temperature": 1.0,
    "top_p": 0.95,
    "messages": [
      {"role": "system", "content": "You are a concise creative coding assistant."},
      {"role": "user", "content": "Write a 5-line SVG of a forest horizon using three muted green polygons."}
    ]
  }'

Step 2: Call the Cluster from Python

This short script uses only Python's standard library (urllib and json)—no external packages required—to request an SVG snippet and save it to disk:

import json
import urllib.request

URL = "http://<HEAD_NODE_IP>:4000/v1/chat/completions"

payload = {
    "model": "gemma-fleet",
    "temperature": 1.0,
    "top_p": 0.95,
    "messages": [
        {"role": "system", "content": "Return only valid SVG markup with no markdown fences."},
        {"role": "user", "content": "Create a 400x300 geometric composition with 6 overlapping circles."}
    ]
}

req = urllib.request.Request(
    URL,
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json"},
)

with urllib.request.urlopen(req) as resp:
    data = json.loads(resp.read().decode("utf-8"))

svg_output = data["choices"][0]["message"]["content"]
with open("sketch.svg", "w", encoding="utf-8") as f:
    f.write(svg_output)

print("Wrote sketch.svg")
Gemma 4 Parameter Note For Gemma 4 reasoning and tool-calling tasks, the recommended sampling settings are temperature = 1.0, top_p = 0.95, and top_k = 64. When adding custom tools, keep the active toolkit between 5 and 10 functions per turn to keep parameter generation reliable.

Suggested Learning Sequence

Stage Focus Concrete Milestone
1. Inspect HTML, CSS, and SVG Open this documentation site in a text editor, modify colors in styles.css, and edit an SVG coordinate.
2. Request HTTP & JSON Run the curl command above from a workstation and inspect the JSON response structure.
3. Automate Python Basics Run the Python script to generate sketch.svg, then add a loop to generate 10 variations into a folder.
4. Multimodal & Tools Vision / Function Calling Send a photo of a physical sketchbook page to Gemma-4-12B Unified and extract a structured color palette.