Git Product home page Git Product logo

InServiceOfX

Monorepo (single or "mono" repository) for deep learning.

Creating and starting a virtual environment for Python 3

Create a directory for a virtual environment:

/InServiceOfX$ python3 -m venv ./venv/

Activate it:

/InServiceOfX$ source ./venv/bin/activate

You should see the prompt have a prefix (venv).

Deactivate it:

deactivate

Running Python tests

From the "base directory" of this repository, you may run the Python unit tests and integration tests as follows:

$ pytest ./ThirdParty/NeuralOperators

This is a specific example (you may change it) illustrating running the integration tests for neuraloperators, and it seems pytest will recursively run all the tests it detects in all the subdirectories.

Setting up a Virtual Machine

Requiring manual effort:

docker info | grep 'Docker Root Dir'

Example /etc/docker/daemon.json

{
    "data-root": "/mnt/ey/docker",
    "runtimes": {
        "nvidia": {
            "args": [],
            "path": "nvidia-container-runtime"
        }
    }
}

However, read about the difference between storage driver "overlay2" for Docker vs. storage driver "vfs":

https://docs.docker.com/storage/storagedriver/overlayfs-driver/ https://docs.docker.com/storage/storagedriver/vfs-driver/

vfs is very slow compared to overlayfs because vfs does a deep copy (of each layer). If the filesystem mounted is virtiofs type, then if you try to force "storage-driver": "overlay2", it will return error, for instance

Aug 01 08:03:32 ernest-yeung dockerd[18151]: time="2024-08-01T08:03:32.397154488Z" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
Aug 01 08:03:32 ernest-yeung dockerd[18151]: failed to start daemon: error initializing graphdriver: driver not supported: overlay2
Aug 01 08:03:32 ernest-yeung systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE

When starting and stopping Docker services, don't do sudo systemctl stop docker.socket, you'll need root access to restart it again. When I inadvertently did so, what I ended up doing was deleting the virtual machine and starting over again. https://www.ibm.com/docs/en/z-logdata-analytics/5.1.0?topic=software-relocating-docker-root-directory

In SetupVirtualMachine.sh script

InServiceOfX's Projects

42 icon 42

Simulation for spacecraft attitude control system analysis and design

candle icon candle

Minimalist ML framework for Rust

cutlass icon cutlass

CUDA Templates for Linear Algebra Subroutines

diffusers icon diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.

faiss icon faiss

A library for efficient similarity search and clustering of dense vectors.

galore icon galore

GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

inserviceofx icon inserviceofx

Monorepo (single or "mono" repository) for deep learning.

instantid icon instantid

InstantID : Zero-shot Identity-Preserving Generation in Seconds 🔥

langchain icon langchain

🦜🔗 Build context-aware reasoning applications

llama_index icon llama_index

LlamaIndex is a data framework for your LLM applications

mamba icon mamba

Fork of mamba as an improved state-spaces architecture

ollama icon ollama

Get up and running with Llama 2, Mistral, Gemma, and other large language models.

raft icon raft

RAFT contains fundamental widely-used algorithms and primitives for machine learning and information retrieval. The algorithms are CUDA-accelerated and form building blocks for more easily writing high performance applications.

rmm icon rmm

RAPIDS Memory Manager

text-generation-webui icon text-generation-webui

A Gradio web UI for Large Language Models. Supports transformers, GPTQ, AWQ, EXL2, llama.cpp (GGUF), Llama models.

transformers icon transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.