Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: kerthcet <[email protected]>
  • Loading branch information
kerthcet committed Aug 28, 2024
1 parent 6e9c76d commit 9459b20
Show file tree
Hide file tree
Showing 10 changed files with 217 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
# Ignore build and test binaries.
bin/
18 changes: 18 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
# Maintain dependencies for go
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
# labels:
# - "cleanup"
groups:
kubernetes:
patterns:
- "k8s.io/*"
ignore:
# Ignore major and minor versions for dependencies updates
# Allow patches and security updates.
- dependency-name: k8s.io/*
update-types: ["version-update:semver-major", "version-update:semver-minor"]
10 changes: 10 additions & 0 deletions .github/workflows/kube-workflow-init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Initialization Workflow

on:
workflow_dispatch:

jobs:
init:
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected]
secrets:
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/kube-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Event Workflow

on:
issues:
types:
- opened
issue_comment:
types:
- created
pull_request_target:
types:
- opened
- synchronize
- labeled
- unlabeled

jobs:
event-handler:
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected]
secrets:
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
bin/*
Dockerfile.cross

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*

# editor and IDE paraphernalia
.idea
.vscode
*.swp
*.swo
*~

.DS_Store
40 changes: 40 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
run:
deadline: 5m
allow-parallel-runners: true

issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
# restore some of the defaults
# (fill in the rest as needed)
exclude-rules:
- path: "api/*"
linters:
- lll
- path: "internal/*"
linters:
- dupl
- lll
linters:
disable-all: true
enable:
- dupl
- errcheck
- exportloopref
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- prealloc
- staticcheck
- typecheck
- unconvert
- unparam
- unused
42 changes: 42 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Code of Conduct

👋 Welcome to InftyAI community !

- [Scope](#scope)
- [Our Standards](#our-standards)

## Scope

This code of conduct applies within project and community spaces.

## Our Standards

Examples of behavior that contributes to a positive environment include but are not limited to:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community
- Using welcoming and inclusive language

Examples of unacceptable behavior include but are not limited to:

- The use of sexualized language or imagery
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment in any form
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Violence, threatening violence, or encouraging others to engage in violent behavior
- Stalking or following someone without their consent
- Unwelcome physical contact
- Unwelcome sexual or romantic attention or advances
- Other conduct which could reasonably be considered inappropriate in a
professional setting

The following behaviors are also prohibited:

- Providing knowingly false or misleading information in connection with a Code of Conduct investigation or otherwise intentionally tampering with an investigation.
- Retaliating against a person because they reported an incident or provided information about an incident as a witness.
39 changes: 39 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contributing

👋 Welcome to InftyAI community !

- [Before you get started](#before-you-get-started)
- [Code of Conduct](#code-of-conduct)
- [Getting started](#getting-started)
- [PullRequests](#pull-requests)
- [Code Review](#code-review)

## Before you get started

### Code of Conduct

Please make sure to read and observe our [Code of Conduct](/CODE_OF_CONDUCT.md) first.

## Getting started

🚀 **All kinds of contributions are welcomed !**

- Fix documents & Typos
- Report & fix bugs
- New features
- Issues & discussions
- ...

### Pull Requests

Pull requests are often called simply "PR".
Please follows the standard [github pull request](https://help.github.com/articles/about-pull-requests/) process.
To submit a proposed change, please develop the code and add new test cases.

### Code Review

To make it easier for your PR to receive reviews, consider the reviewers will need you to:

- Follow [good coding guidelines](https://github.com/golang/go/wiki/CodeReviewComments).
- Write [good commit messages](https://chris.beams.io/posts/git-commit/).
- Break large changes into a logical series of smaller patches which individually make easily understandable changes, and in aggregate solve a broader issue.
5 changes: 5 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
approvers:
- kerthcet

reviewers:
- kerthcet
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# vScheduler

A Kubernetes scheduler designed for smart scheduling with llmaz.

## Plugins

vScheduler maintains multiple plugins for llm workloads scheduling.

### ResourceFungibility

A llama2-70B model can be run on 2xA100-80GB GPUs, can also be run on 4xA100-40GB GPUs, this is what we called fungibility.

With resourceFungibility plugin, we can simply achieve with at most 8 alternatives.

0 comments on commit 9459b20

Please sign in to comment.