{"id":15648118,"url":"https://github.com/noracodes/mlem","last_synced_at":"2025-12-12T12:52:32.869Z","repository":{"id":57639377,"uuid":"87022727","full_name":"NoraCodes/mlem","owner":"NoraCodes","description":"Machine Learning Machine - a VM for machine learning","archived":false,"fork":false,"pushed_at":"2019-09-21T19:19:31.000Z","size":34,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:25:46.217Z","etag":null,"topics":["machine-learning","ml","virtual-machine","vm"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NoraCodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-02T23:26:33.000Z","updated_at":"2024-05-31T21:46:29.000Z","dependencies_parsed_at":"2022-08-27T20:02:19.535Z","dependency_job_id":null,"html_url":"https://github.com/NoraCodes/mlem","commit_stats":null,"previous_names":["silverwingedseraph/mlem"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fmlem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fmlem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fmlem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fmlem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoraCodes","download_url":"https://codeload.github.com/NoraCodes/mlem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722806,"owners_count":21633019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","ml","virtual-machine","vm"],"created_at":"2024-10-03T12:23:37.797Z","updated_at":"2025-12-12T12:52:32.839Z","avatar_url":"https://github.com/NoraCodes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MLeM\n\n[![Crates.io version badge](https://img.shields.io/crates/v/mlem.svg)](https://crates.io/crates/mlem)\n[![Docs.rs version badge](https://docs.rs/mlem/badge.svg)](https://docs.rs/mlem/)\n\nThe Machine Learning Machine is a 64-bit virtual Harvard-arch\nmachine for evolutionary algorithms to program against.\n\nThe machine has eight GPRs (`R0` through `R7`), a hardware stack with `SP` and `BP`, \nand hardware I/O with Input and Output. \n \nThese I/O instructions write out whole `u64`s in big endian using `byteorder`.\n\n## Features\n\nThe `serialize` feature imports `serde` and derives `Serialize` and `Deserialize` on all\ntypes. It is enabled by default.\n\n## Example\n\nThis example shows a simple program being executed by the MLeM managed execution routine.\n\n```\nuse mlem::{execute, Instruction, Address, Register, Outcome};\nlet input = vec![2, 2, 2, 2];\nlet expected = vec![4, 0];\nlet program = vec![\n    // Get all input values\n    Instruction::Input(Address::RegAbs(Register::R0)),\n    Instruction::Input(Address::RegAbs(Register::R1)),\n    Instruction::Input(Address::RegAbs(Register::R2)),\n    Instruction::Input(Address::RegAbs(Register::R3)),\n    // Perform arithmetic\n    Instruction::Add(Address::RegAbs(Register::R0), Address::RegAbs(Register::R1)),\n    Instruction::Sub(Address::RegAbs(Register::R2), Address::RegAbs(Register::R3)),\n    // Output computed values\n    Instruction::Output(Address::RegAbs(Register::R0)),\n    Instruction::Output(Address::RegAbs(Register::R2)),\n    // Halt\n    Instruction::Halt\n];\n//!\nlet (outcome, _, output) = execute(program, input);\nassert!(outcome == Outcome::Halt, \"Program did not successfully halt! {:?}\", outcome);\nassert!(output == expected, \"Program did not produce {:?} as expected, but rather {:?}.\", expected, output);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fmlem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoracodes%2Fmlem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fmlem/lists"}