Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DewashishCodes/VisualTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

21 Commits

Repository files navigation

🧠 VisualTorchIDE

Neural networks are systems. Design them spatially. Execute them locally.

VisualTorchIDE is a professional-grade, local-first Integrated Development Environment (IDE) for Deep Learning. It allows engineers to design complex PyTorch architectures as visual graphs, validate tensor shapes in real-time, and execute training loops on their own hardware—all through a cinematic, high-performance holographic interface.


🚀 The Vision

Most visual ML tools are "black boxes" for beginners. VisualTorchIDE is different. It is a Visual Compiler.

  • It generates production-ready PyTorch code from your graph.
  • It catches Runtime Errors (shape mismatches) before you hit train.
  • It runs locally, giving you full access to your own CPU/GPU and datasets.

✨ Key Features

1. The Neural Foundry (3D Engine)

A high-performance 3D canvas built with Three.js and React-Three-Fiber.

  • Holographic Nodes: Real-time distorted spheres and geometries representing layers.
  • Data Flow Animation: Pulsing yellow packets travel along wires during training to visualize active gradients.
  • Pro-Debugger: Hover over connections to see current tensor shapes (e.g., [64, 128, 28, 28]).

2. Live Telemetry HUD

  • Real-time Metrics: Low-latency tracking of Loss, Accuracy, Precision, and Recall via WebSockets.
  • Hardware Integration: Automatic detection and display of CUDA (GPU) or CPU execution status.
  • System Logs: A terminal-style feed for granular engine feedback.

3. Comprehensive Module Library

Build more than just linear models. VisualTorchIDE supports:

  • Vision: Conv2d, MaxPool2d, BatchNorm2d.
  • Sequential: LSTM, GRU, RNN.
  • Core: Flatten, Dropout, Linear, Lazy-loading.
  • Optimizers: Adam, SGD, RMSProp.

4. Direct PyTorch Compiler

The backend engine translates your visual DAG (Directed Acyclic Graph) into idiomatic, clean Python code. You can export the .py file and run it anywhere.


⚠️ A few honest declarations

Building this in 24hr solo was a challange of immense magnitude. I have tried my best to give you the best possible outcome I could, however it has its shortcoming and I want to be transparent and honest about it to you.

  • It needs a gemini API key in the chatmodel component

  • You can make simple model graphs or load the cnn one. Further updates would include more complex ones as well

  • The UI UX is not the best that I have ever made, it will surely be mended and beautified soon.


🛠️ Tech Stack

Layer Technologies
Frontend React JS, Tailwind CSS, Zustand, Lucide Icons
3D Engine Three.js, React Three Fiber, @react-three/drei, Postprocessing (Bloom/Vignette)
Backend Python 3.10+, FastAPI, Uvicorn
ML Engine PyTorch, TorchVision, Pandas
Streaming WebSockets
CLI Node.js (Process orchestration)

📦 Installation & Setup

Prerequisites

  • Node.js (v18+)
  • Python (3.10+)
  • Git

1. Clone the repository

git clone https://github.com/yourusername/VisualTorchIDE.git
cd neural-engine

2. Setup the Backend (Engine)

cd backend
pip install -r requirements.txt
# Alternatively:
# py -m pip install fastapi uvicorn torch torchvision pandas websockets sympy

3. Setup the Frontend (Web)

cd ../frontend
npm install

4. Launch the IDE

Return to the root and run uvicorn and react server seperately:

cd ..
cd frontend
react start
# In a different terminal
cd backend
uvicorn main:app --reload

The IDE will automatically open in your browser at http://localhost:3000.


📐 Why "Local-First"?

Cloud-based ML platforms are slow to upload datasets and often restrictive. VisualTorchIDE stays local:

  • Privacy: Your data and weights never leave your machine.
  • Speed: Zero latency for large dataset loading.
  • Hardware: If you have an NVIDIA GPU, the engine leverages CUDA automatically.
  • Offline: Work on your models anywhere, even without internet.

🗺️ Roadmap

  • Generative Architect: Use Gemini/LLMs to generate graphs from text prompts.
  • Live Inference: A drawing canvas to test MNIST/CIFAR models in real-time.
  • Data Studio: Integrated CSV cleaning and normalization tools.
  • ONNX Export: Deploy models directly to web/mobile.

🤝 Contribution

This project was built for the [Your Hackathon Name] Hackathon. Contributions, issues, and feature requests are welcome!


📄 License

MIT License - Copyright (c) 2026 Dewashish Lambore


Created with ❤️ for the Machine Learning Community.

About

🧠 A local-first Visual Compiler and IDE for PyTorch. Orchestrates a React-Three-Fiber 3D frontend and a FastAPI execution engine to translate directed acyclic graphs (DAGs) into executable tensor operations. Features real-time shape inference, WebSocket telemetry, and hardware-accelerated (CUDA/CPU) local training loops ⚡.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /