Skip to content

Commit

Permalink
chore: pnpm style
Browse files Browse the repository at this point in the history
Signed-off-by: Nasfame <[email protected]>
  • Loading branch information
Nasfame committed Oct 21, 2023
1 parent e613d75 commit 4cf79ea
Show file tree
Hide file tree
Showing 34 changed files with 1,298 additions and 1,272 deletions.
5 changes: 1 addition & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
## Related Issue(s)

Fixes #
Resolves #
Closes #

Fixes # Resolves # Closes #

## Proposed Changes

Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/cross.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,16 @@ jobs:
- name: Build
run: npm run build


test:
timeout-minutes: 10

strategy:
max-parallel: 2
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
node_version: [ 18, 19, 20 ]
architecture: [ x64 ] #, arm64 ] # arm,
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [18, 19, 20]
architecture: [x64] #, arm64 ] # arm,

runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
Expand All @@ -88,11 +87,8 @@ jobs:
run: |
echo $envfile > .env.tmp
sed 's/ /\n/g' .env.tmp > .env
# source .env for windows

# source .env for windows
- name: Install dependencies
run: pnpm install


# - name: Run tests for ${{runner.os}} TODO: once jest tests pass
# run: npm run test
50 changes: 28 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ Decentralized AI Model Training Infrastructure

## Description

DeCenter AI is a PaaS infrastructure that empowers machine learning engineers to train AI models more quickly and
affordably through decentralized parallel training mechanisms.
DeCenter AI is a PaaS infrastructure that empowers machine learning engineers to train AI
models more quickly and affordably through decentralized parallel training mechanisms.

## Table of Contents

- [DeCenter AI](#decenter-ai)
- [Description](#description)
- [Table of Contents](#table-of-contents)
Expand All @@ -19,32 +20,35 @@ affordably through decentralized parallel training mechanisms.

## Overview

DeCenter AI functions as a PaaS infrastructure, empowering machine learning engineers to expedite and make the training
of AI models more cost-effective through decentralized parallel training methods.
DeCenter AI functions as a PaaS infrastructure, empowering machine learning engineers to
expedite and make the training of AI models more cost-effective through decentralized
parallel training methods.

The core objective of DeCenter AI is to democratize and decentralize AI model training. By offering a distributed
training platform, it allows data scientists, machine learning engineers, researchers, and AI specialists to
collaboratively contribute to the training of AI models. Structured around a distributed parallel training mechanism,
DeCenter AI has been designed to facilitate the training of various ML and DL models in a significantly reduced time
frame and cost compared to the current norms.
Our platform incorporates a built-in incentive system, fueled by DCEN Tokens. This system not only rewards contributors
and participants but also encourages them to undertake tasks such as reviewing, testing, and rating AI models.
The core objective of DeCenter AI is to democratize and decentralize AI model training. By
offering a distributed training platform, it allows data scientists, machine learning
engineers, researchers, and AI specialists to collaboratively contribute to the training
of AI models. Structured around a distributed parallel training mechanism, DeCenter AI has
been designed to facilitate the training of various ML and DL models in a significantly
reduced time frame and cost compared to the current norms. Our platform incorporates a
built-in incentive system, fueled by DCEN Tokens. This system not only rewards
contributors and participants but also encourages them to undertake tasks such as
reviewing, testing, and rating AI models.

### Features

- Decenter teams
- Model repository
- Model customization
- Auto training and testing
- Incentivisation and governance
View our [Features List](https://www.canva.com/design/DAFttOVmaYg/cfT1zEfkCmqLt4JiDqdMmw/view?utm_content=DAFttOVmaYg&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
- Incentivisation and governance View our
[Features List](https://www.canva.com/design/DAFttOVmaYg/cfT1zEfkCmqLt4JiDqdMmw/view?utm_content=DAFttOVmaYg&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).

### Target Customers

- Data scientists
- Machine learning engineers
- AI Engineers
View our [Customer profile](https://www.canva.com/design/DAFri_nB4wo/eI4WrI2aQGyfy6T1bx4ZTQ/view?utm_content=DAFri_nB4wo&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
- AI Engineers View our
[Customer profile](https://www.canva.com/design/DAFri_nB4wo/eI4WrI2aQGyfy6T1bx4ZTQ/view?utm_content=DAFri_nB4wo&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).

### Benefits

Expand All @@ -53,30 +57,32 @@ and participants but also encourages them to undertake tasks such as reviewing,
- Automated resource management
- Seamless deployment and scalability


## How to Contribute

We welcome contributions from the community! To get started, follow these steps:

1. Fork the repository on GitHub.
2. Clone your fork of the repository to your local machine.
3. Create a new branch for your changes: `git checkout -b <your-username>/your-feature-branch`.
3. Create a new branch for your changes:
`git checkout -b <your-username>/your-feature-branch`.
4. Make your changes and commit them to your branch.
5. Push your changes to your fork on GitHub.
6. Open a pull request from your fork's branch to the main repository.

Please make sure to follow the [Code of Conduct](./CODE_OF_CONDUCT.md) when contributing to this project.
Please make sure to follow the [Code of Conduct](./CODE_OF_CONDUCT.md) when contributing
to this project.

## License

DeCenter AI is released under the [MIT License](https://opensource.org/licenses/MIT).


## Support

For any inquiries or assistance, please contact our support team at [email protected] or visit
our [website](https://decenterai.com/).
For any inquiries or assistance, please contact our support team at [email protected]
or visit our [website](https://decenterai.com/).

## Links

[Deck](https://www.canva.com/design/DAFvisezgFA/GCYskdQ4GaltJ2v6YGIgjQ/view?utm_content=DAFvisezgFA&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink ). [Project Roadmap](https://www.canva.com/design/DAFttYsFcCE/NsHO_5cm8pPfHf8_dAFELA/view?utm_content=DAFttYsFcCE&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink). [Go-to-market](https://www.canva.com/design/DAFttc0AxfY/unRA-Piq6dXOhxNGF2_3Ag/view?utm_content=DAFttc0AxfY&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
[Deck](https://www.canva.com/design/DAFvisezgFA/GCYskdQ4GaltJ2v6YGIgjQ/view?utm_content=DAFvisezgFA&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
[Project Roadmap](https://www.canva.com/design/DAFttYsFcCE/NsHO_5cm8pPfHf8_dAFELA/view?utm_content=DAFttYsFcCE&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
[Go-to-market](https://www.canva.com/design/DAFttc0AxfY/unRA-Piq6dXOhxNGF2_3Ag/view?utm_content=DAFttc0AxfY&utm_campaign=designshare&utm_medium=link&utm_source=publishsharelink).
24 changes: 12 additions & 12 deletions bacalhau.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
const axios = require("axios");
const axios = require('axios')

let data = {
Engine: "Docker",
Engine: 'Docker',
Docker: {
Image: "ubuntu",
Entrypoint: ["echo"],
Parameters: ["hello"],
Image: 'ubuntu',
Entrypoint: ['echo'],
Parameters: ['hello'],
},
Deal: {
Concurrency: 1,
},
Verifier: "Noop",
Verifier: 'Noop',
PublisherSpec: {
Type: "IPFS",
Type: 'IPFS',
},
};
}

axios
.post("http://dashboard.bacalhau.org:1000/api/v1/run", data)
.post('http://dashboard.bacalhau.org:1000/api/v1/run', data)
.then((response) => {
console.log(response.data);
console.log(response.data)
})
.catch((error) => {
console.error(error);
});
console.error(error)
})
2 changes: 1 addition & 1 deletion decs.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module "web3.storage";
declare module 'web3.storage'
4 changes: 2 additions & 2 deletions enums/app.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const AppName = "Decenter AI"
export const AppName = 'Decenter AI'
export const AppDescription = `
DecenterAI: Decentralized Infra for AI Model Training
`.trim()

export const AppSiteManifest = '/site.webmanifest'

export const WagmiProjectId = "db1b8a46ffa835bd9a48a89ff540f990"
export const WagmiProjectId = 'db1b8a46ffa835bd9a48a89ff540f990'
10 changes: 5 additions & 5 deletions environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace NodeJS {
interface ProcessEnv {
NEXT_PUBLIC_AUTH_CID: string,
NEXT_PUBLIC_GOOGLE_CID: string;
}
}
interface ProcessEnv {
NEXT_PUBLIC_AUTH_CID: string
NEXT_PUBLIC_GOOGLE_CID: string
}
}
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {pathsToModuleNameMapper} from 'ts-jest'
import {compilerOptions} from './tsconfig.node.json'
import { pathsToModuleNameMapper } from 'ts-jest'
import { compilerOptions } from './tsconfig.node.json'

const jestConfig = {
preset: 'ts-jest',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
},
"homepage": "https://app.decenterai.com",
"packageManager": "[email protected]"
}
}
Loading

0 comments on commit 4cf79ea

Please sign in to comment.