Skip to content

Commit 9459b20

Browse files
committed
Initial commit
Signed-off-by: kerthcet <[email protected]>
1 parent 6e9c76d commit 9459b20

10 files changed

+217
-0
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore build and test binaries.
3+
bin/

.github/dependabot.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for go
4+
- package-ecosystem: "gomod"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
# labels:
9+
# - "cleanup"
10+
groups:
11+
kubernetes:
12+
patterns:
13+
- "k8s.io/*"
14+
ignore:
15+
# Ignore major and minor versions for dependencies updates
16+
# Allow patches and security updates.
17+
- dependency-name: k8s.io/*
18+
update-types: ["version-update:semver-major", "version-update:semver-minor"]
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Initialization Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
init:
8+
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected]
9+
secrets:
10+
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}

.github/workflows/kube-workflow.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Event Workflow
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
issue_comment:
8+
types:
9+
- created
10+
pull_request_target:
11+
types:
12+
- opened
13+
- synchronize
14+
- labeled
15+
- unlabeled
16+
17+
jobs:
18+
event-handler:
19+
uses: kerthcet/github-workflow-as-kube/.github/workflows/[email protected]
20+
secrets:
21+
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin/*
9+
Dockerfile.cross
10+
11+
# Test binary, build with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
17+
# Kubernetes Generated files - skip generated files, except for vendored files
18+
19+
!vendor/**/zz_generated.*
20+
21+
# editor and IDE paraphernalia
22+
.idea
23+
.vscode
24+
*.swp
25+
*.swo
26+
*~
27+
28+
.DS_Store

.golangci.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
run:
2+
deadline: 5m
3+
allow-parallel-runners: true
4+
5+
issues:
6+
# don't skip warning about doc comments
7+
# don't exclude the default set of lint
8+
exclude-use-default: false
9+
# restore some of the defaults
10+
# (fill in the rest as needed)
11+
exclude-rules:
12+
- path: "api/*"
13+
linters:
14+
- lll
15+
- path: "internal/*"
16+
linters:
17+
- dupl
18+
- lll
19+
linters:
20+
disable-all: true
21+
enable:
22+
- dupl
23+
- errcheck
24+
- exportloopref
25+
- goconst
26+
- gocyclo
27+
- gofmt
28+
- goimports
29+
- gosimple
30+
- govet
31+
- ineffassign
32+
- lll
33+
- misspell
34+
- nakedret
35+
- prealloc
36+
- staticcheck
37+
- typecheck
38+
- unconvert
39+
- unparam
40+
- unused

CODE_OF_CONDUCT.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Code of Conduct
2+
3+
👋 Welcome to InftyAI community !
4+
5+
- [Scope](#scope)
6+
- [Our Standards](#our-standards)
7+
8+
## Scope
9+
10+
This code of conduct applies within project and community spaces.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to a positive environment include but are not limited to:
15+
16+
- Demonstrating empathy and kindness toward other people
17+
- Being respectful of differing opinions, viewpoints, and experiences
18+
- Giving and gracefully accepting constructive feedback
19+
- Accepting responsibility and apologizing to those affected by our mistakes,
20+
and learning from the experience
21+
- Focusing on what is best not just for us as individuals, but for the
22+
overall community
23+
- Using welcoming and inclusive language
24+
25+
Examples of unacceptable behavior include but are not limited to:
26+
27+
- The use of sexualized language or imagery
28+
- Trolling, insulting or derogatory comments, and personal or political attacks
29+
- Public or private harassment in any form
30+
- Publishing others' private information, such as a physical or email
31+
address, without their explicit permission
32+
- Violence, threatening violence, or encouraging others to engage in violent behavior
33+
- Stalking or following someone without their consent
34+
- Unwelcome physical contact
35+
- Unwelcome sexual or romantic attention or advances
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
The following behaviors are also prohibited:
40+
41+
- Providing knowingly false or misleading information in connection with a Code of Conduct investigation or otherwise intentionally tampering with an investigation.
42+
- Retaliating against a person because they reported an incident or provided information about an incident as a witness.

CONTRIBUTING.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing
2+
3+
👋 Welcome to InftyAI community !
4+
5+
- [Before you get started](#before-you-get-started)
6+
- [Code of Conduct](#code-of-conduct)
7+
- [Getting started](#getting-started)
8+
- [PullRequests](#pull-requests)
9+
- [Code Review](#code-review)
10+
11+
## Before you get started
12+
13+
### Code of Conduct
14+
15+
Please make sure to read and observe our [Code of Conduct](/CODE_OF_CONDUCT.md) first.
16+
17+
## Getting started
18+
19+
🚀 **All kinds of contributions are welcomed !**
20+
21+
- Fix documents & Typos
22+
- Report & fix bugs
23+
- New features
24+
- Issues & discussions
25+
- ...
26+
27+
### Pull Requests
28+
29+
Pull requests are often called simply "PR".
30+
Please follows the standard [github pull request](https://help.github.com/articles/about-pull-requests/) process.
31+
To submit a proposed change, please develop the code and add new test cases.
32+
33+
### Code Review
34+
35+
To make it easier for your PR to receive reviews, consider the reviewers will need you to:
36+
37+
- Follow [good coding guidelines](https://github.com/golang/go/wiki/CodeReviewComments).
38+
- Write [good commit messages](https://chris.beams.io/posts/git-commit/).
39+
- Break large changes into a logical series of smaller patches which individually make easily understandable changes, and in aggregate solve a broader issue.

OWNERS

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
approvers:
2+
- kerthcet
3+
4+
reviewers:
5+
- kerthcet

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
# vScheduler
2+
23
A Kubernetes scheduler designed for smart scheduling with llmaz.
4+
5+
## Plugins
6+
7+
vScheduler maintains multiple plugins for llm workloads scheduling.
8+
9+
### ResourceFungibility
10+
11+
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.
12+
13+
With resourceFungibility plugin, we can simply achieve with at most 8 alternatives.

0 commit comments

Comments
 (0)