Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .continue/prompts/new-prompt-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
name: Variable Dictionary
description: Acceptable terms to use for new variables names
invokable: true
---

## variable dictionary

### Tier 1 (shortest <=5)

#### Action

_ASSEMBLE Piece / Rig / Item / Chunk
CEILING Limit / Edge / Raise
CLASSIFY Flag / Mark / Label / Stamp / Tag
CLEAN Cure / Clean / Level / Even / Align
COMBINE Join / Cat / Fuse / Bond / Unify / Unite / Blend / Mesh / Merge
COMPARE Ratio / Rank / Range
COMPRESS Zip / Smush
CREATE Make / Form / Shape / Set / New / Extra / More
DETOUR Avoid / Mask
DUPLICATE Clone / Copy
DISASSEMBLE Strip / Trim / Snip / Divvy / Slice
IMMUTABLE Fixed / Safe
LINE UP Sort / Order / Prime / First / Last / Point / Stack
MUTATE Edit / Loop / Slide / Warp / Alter
NULLIFY Empty / Gap / Null / Clear / Erase
PROFILE Time / Bench / Score / Gauge / Grade / Weigh / Test / Rate / Size / Tune
REVEAL Read / Show / Get / Fan
SHUFFLE Skip / Cross / Shift / Mix / Move / Weave
STATUS Try / Check / Poll / Prove / State / Mode / Stage
SWITCH Trade / Swap / Flip
TRAVERSE Crawl / Scan / Trace / Trawl / Look / Query / Find / Index
WAIT Cue / Task / Queue_

#### Object

**SESSSION Ready / Last / Reset / Keep
SESSION IN Start / Init / Begin / Task
SESSION OUT Drop / Exit / Leave / End / Stop
HARDWARE Disk / Net / Audio / Video / Chip
SOFTWARE Path / Code
DISK IN Load / Open
DISK OUT Log / Save / Cache / Store / Stash
CONNECT IN Pull / Fetch / On
CONNECT OUT Push / Send / Feed / Off / Post
TEMPORAL Sync / Pipe / Loop
TEXT Glyph / Form / Frame
CLASSIFIER Host / Guest / Link / Chain / Core / Base / Local**

### Adjective

> Modifiers : is/has/have/can/only/maybe>
> Relational : \_at, _to, _in , \_of, \_with, \_for, \_in, \_using
> States : raw / up / down / low / high / valid
> Scale : macro / mini / small / large / giant / mega

### File and Folder handling

_file_contents_ - data inside the file
_file_name_ - exclusively
_file_path_ - path leading to file, with no file name
_file_path_absolute_ - absolute path including name
_file_all_suffix_ - all . separated items including extension
_file_extension_ - final suffix
_empty_file_name_ - a file to be created
_empty_file_absolute_ - absolute path including name to be created
_folder_contents_ - file names inside a folder
_folder_name_ - the name of the folder
_folder_name_pathed_ - absolute path, existing folder including name
_empty_folder_name_ - a folder to be created
_empty_folder_absolute_ - absolute path including name to be created
7 changes: 7 additions & 0 deletions .continue/prompts/new-prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: MIR
description: Machine Intelligence Resource
invokable: true
---

MIR is a URI naming schema for referring to and calling models.
11 changes: 11 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Should Not Change
LOGO_BASE_URL="https://raw.githubusercontent.com/darkshapes/entity-statement/refs/heads/main/png/"
DOC_PATH="darkshapes.github.io/public/docs"

# May Change
VENV=".venv"
DOC_REPO_CLONE="${HOME}/Documents/GitHub/darkshapes/"
SKIP_DOCS=0

# Change Every Time
LOGO_PATH="mir/mir75_dark.png"
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Version = 0.0.5_2025-22-12
| Creepy Vibes... | Unacceptable. Words and flirts CAN hurt. End coercion. |
| Users vs Developers | Everyone involved, anywhere. Skill DIVERSITY, not division. |

\*More behavior guidelines
https://www.recurse.com/social-rules

## Constructive Criticism Guide:

- Ask consent first. Don't forget to wait for the answer!
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Without limiting other conditions in the License, the grant of rights under the

For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.

Software: zodiac
Software: mir

License : Mozilla Public License v. 2.0

Licensor: darkshapes github.com/darkshapes

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
43 changes: 25 additions & 18 deletions MIR.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ License: “Commons Clause” License Condition v1.0

For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.

Software: zodiac
Software: mir

License : Mozilla Public License v. 2.0

Licensor: darkshapes github.com/darkshapes

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Project-URL: Homepage, https://github.com/darkshapes/MIR
Project-URL: Documentation, https://github.com/darkshapes/sdbx/wiki
Keywords: ML,AI,URI,schema,diffusion,LLM,identification
Expand All @@ -32,9 +33,13 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: chanfig>=0.0.114
Requires-Dist: diffusers>=0.35.2
Requires-Dist: ftfy>=6.3.1
Requires-Dist: huggingface-hub[hf-xet]>=1.1.7
Requires-Dist: numpy>=2.4.1
Requires-Dist: pydantic>=2.12.5
Requires-Dist: sentencepiece>=0.2.1
Requires-Dist: tokenizers>=0.22.1
Requires-Dist: torch>=2.9.1
Requires-Dist: torchvision>=0.24.1
Expand Down Expand Up @@ -70,10 +75,10 @@ This repo is an example development implementation of autogenerated model infere
>
> ## Example:
>
> ## mir : model . transformer . clip-l : stable-diffusion-xl
> ## mir : // model . vit . clip-l : stable-diffusion-xl
>
> ```
> mir : model . lora . hyper : flux-1
> mir : // model . lora . hyper : flux-1
> ↑ ↑ ↑ ↑ ↑
> [URI]:[Domain].[Architecture].[Series]:[Compatibility]
> ```
Expand Down Expand Up @@ -132,27 +137,28 @@ Meant to be created by standards community, derived from code and file analysis

| Abbreviation | Description |
| ------------------------------------- | ----------------------------------------- |
| <div align="right">GRU</div> | Gated recurrent unit |
| <div align="right">RBM</div> | Restricted Boltzmann machine |
| <div align="right">TAE</div> | Tiny Autoencoder |
| <div align="right">VAE</div> | Variable Autoencoder |
| <div align="right">LSTM</div> | Long Short-Term Memory |
| <div align="right">RESNET</div> | Residual Network |
| <div align="right">AET</div> | Autoencoding Transformer |
| <div align="right">ART</div> | Autoregressive Transformer |
| <div align="right">BRNN</div> | Bi-directional Recurrent Neural Network |
| <div align="right">CNN</div> | Convolutional Neural Network |
| <div align="right">CONTROLNET</div> | ControlNet |
| <div align="right">DETR</div> | Detection Transformer |
| <div align="right">GAN</div> | Generative Adversarial Model |
| <div align="right">GRU</div> | Gated Recurrent Unit |
| <div align="right">LORA</div> | Low-Rank Adaptation |
| <div align="right">LSTM</div> | Long Short-Term Memory |
| <div align="right">MOE</div> | Mixture of Experts |
| <div align="right">RBM</div> | Restricted Boltzmann Machine |
| <div align="right">RCNN</div> | Region-based Convolutional Neural Network |
| <div align="right">RESNET</div> | Residual Network |
| <div align="right">RNN</div> | Recurrent Neural Network |
| <div align="right">BRNN</div> | Bi-directional Recurrent Neural Network |
| <div align="right">GAN</div> | Generative Adversarial Model |
| <div align="right">SSM</div> | State-Space Model |
| <div align="right">DETR</div> | Detection Transformer |
| <div align="right">VIT</div> | Vision Transformer |
| <div align="right">MOE</div> | Mixture of Experts |
| <div align="right">AET</div> | Autoencoding Transformer |
| <div align="right">STST</div> | Sequence-to-Sequence Transformer |
| <div align="right">ART</div> | Autoregressive Transformer |
| <div align="right">LORA</div> | Low-Rank Adaptation |
| <div align="right">CONTROLNET</div> | Controlnet |
| <div align="right">TAE</div> | Tiny Autoencoder |
| <div align="right">UNCLASSIFIED</div> | Unknown |
| <div align="right">VAE</div> | Variable Autoencoder |
| <div align="right">VLA</div> | Vision Language Action |
| <div align="right">VIT</div> | Vision Transformer |

--

Expand Down Expand Up @@ -196,6 +202,7 @@ MIR is inspired by:
<!--
[![Python application](https://github.com/darkshapes/MIR/actions/workflows/mir.yml/badge.svg)](https://github.com/darkshapes/MIR/actions/workflows/python-app.yml)<br> -->

[![mir pytest](https://github.com/darkshapes/MIR/actions/workflows/mir.yml/badge.svg)](https://github.com/darkshapes/MIR/actions/workflows/mir.yml)
![commits per month](https://img.shields.io/github/commit-activity/m/darkshapes/MIR?color=indigo)<br>
![code size](https://img.shields.io/github/languages/code-size/darkshapes/MIR?color=navy)<br>
[<img src="https://img.shields.io/discord/1266757128249675867?color=5865F2">](https://discord.gg/VVn9Ku74Dk)<br>
Expand Down
85 changes: 33 additions & 52 deletions MIR.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env
.gitignore
CODE_OF_CONDUCT.md
LICENSE
README.md
pyproject.toml
Expand All @@ -10,59 +12,38 @@ MIR.egg-info/dependency_links.txt
MIR.egg-info/entry_points.txt
MIR.egg-info/requires.txt
MIR.egg-info/top_level.txt
docs/index.html
docs/mir.html
docs/search.js
docs/mir/automata.html
docs/mir/config.html
docs/mir/doc_parser.html
docs/mir/indexers.html
docs/mir/inspect.html
docs/mir/maid.html
docs/mir/run.html
docs/mir/tag.html
docs/mir/config/constants.html
docs/mir/config/conversion.html
docs/mir/config/json_io.html
docs/mir/inspect/classes.html
docs/mir/inspect/metadata.html
docs/mir/inspect/parenting.html
docs/mir/inspect/pipes.html
docs/mir/inspect/tasks.html
mir/__init__.py
mir/__main__.py
mir/automata.py
mir/doc_parser.py
mir/indexers.py
mir/build_entry.py
mir/doc_parse.py
mir/json_io.py
mir/lookups.py
mir/maid.py
mir/mir.json
mir/model.py
mir/nesting.py
mir/nn_walk.py
mir/package.py
mir/tag.py
mir/config/__init__.py
mir/config/constants.py
mir/config/conversion.py
mir/config/json_io.py
mir/config/logging.py
mir/inspect/__init__.py
mir/inspect/classes.py
mir/inspect/metadata.py
mir/inspect/parenting.py
mir/inspect/pipes.py
mir/inspect/tasks.py
mir/spec/mir.py
mir/spec/modes.json
mir/spec/template.json
mir/spec/versions.json
tests/test_class_parent.py
tests/test_deconstructors_root.py
tests/test_doc_parser.py
tests/test_gather_diffusers_metadata.py
tests/test_json_io.py
tests/test_mir_db_create_restore.py
tests/test_mir_merge.py
tests/test_mir_search.py
tests/test_mir_tagging.py
tests/test_regex_constants.py
tests/test_resolve_code_names.py
tests/test_seek_class.py
tests/test_task.py
tests/test_taskanalyzer.py
mir/data/__init__.py
mir/data/component_names.json
mir/data/diffusers_adds.json
mir/data/exclusions.json
mir/data/migrations.json
mir/data/nn_filter.json
mir/data/parameters.json
mir/data/pipe_markers.json
mir/data/tag_scrape.json
mir/data/transformers_adds.json
mir/gatherers/__init__.py
mir/gatherers/diffusers.py
mir/gatherers/mlx.py
mir/gatherers/torch.py
mir/gatherers/transformers.py
mir/spec/__init__.py
mir/spec/regex.json
tests/subclasses_test.py
tests/test_gather_diffusers.py
tests/test_gather_transformers.py
tests/test_inspect.py
tests/test_mir_generate_diffusers.py
tests/test_mir_generate_transformers.py
3 changes: 2 additions & 1 deletion MIR.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[console_scripts]
mir = mir.__init__:main
mir = mir.generate.__main__:main
mir-nn = mir.nn_walk:main
4 changes: 4 additions & 0 deletions MIR.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
chanfig>=0.0.114
diffusers>=0.35.2
ftfy>=6.3.1
huggingface-hub[hf-xet]>=1.1.7
numpy>=2.4.1
pydantic>=2.12.5
sentencepiece>=0.2.1
tokenizers>=0.22.1
torch>=2.9.1
torchvision>=0.24.1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ Meant to be created by standards community, derived from code and file analysis
| <div align="right">ART</div> | Autoregressive Transformer |
| <div align="right">BRNN</div> | Bi-directional Recurrent Neural Network |
| <div align="right">CNN</div> | Convolutional Neural Network |
| <div align="right">CONTROLNET</div> | Controlnet |
| <div align="right">CONTROLNET</div> | ControlNet |
| <div align="right">DETR</div> | Detection Transformer |
| <div align="right">GAN</div> | Generative Adversarial Model |
| <div align="right">GRU</div> | Gated recurrent unit |
| <div align="right">GRU</div> | Gated Recurrent Unit |
| <div align="right">LORA</div> | Low-Rank Adaptation |
| <div align="right">LSTM</div> | Long Short-Term Memory |
| <div align="right">MOE</div> | Mixture of Experts |
| <div align="right">RBM</div> | Restricted Boltzmann machine |
| <div align="right">RBM</div> | Restricted Boltzmann Machine |
| <div align="right">RCNN</div> | Region-based Convolutional Neural Network |
| <div align="right">RESNET</div> | Residual Network |
| <div align="right">RNN</div> | Recurrent Neural Network |
Expand Down
34 changes: 13 additions & 21 deletions mir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
# SPDX-License-Identifier: MPL-2.0 AND LicenseRef-Commons-Clause-License-Condition-1.0
# <!-- // /* d a r k s h a p e s */ -->

import os
from logging import DEBUG, INFO, Logger

def main():
import mir.maid
from mir.maid import main as mir_main
from mir.json_io import read_json_file

mir_main()
from mir.inspect.tasks import main
NFO = Logger(INFO).info
DBUQ = Logger(DEBUG).debug

main()
from mir.inspect.tasks import pipe
ROOT_PATH = os.path.dirname(__file__)
MIR_PATH_NAMED = os.path.join(ROOT_PATH, "mir.json")

pipe()

import os
import shutil

try:
os.remove("mir.json")
except FileNotFoundError:
pass
shutil.copy2(os.path.join(os.path.dirname(mir.maid.__file__), "mir.json"), os.path.join(os.getcwd(), "mir.json"))


if __name__ == "__main__":
main()
BREAKING = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["breaking"]
SEARCH = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["search"]
PARAMETERS = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["parameters"]
SEMANTIC = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["semantic"]
SUFFIX = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["suffix"]
IGNORE = read_json_file(os.path.join(ROOT_PATH, "spec", "regex.json"))["ignore"]
Loading
Loading