Skip to content

Commit

Permalink
community files
Browse files Browse the repository at this point in the history
  • Loading branch information
adefossez committed Sep 17, 2024
1 parent 8db6d58 commit 07bdd3d
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 🐛 Bug Report
about: Submit a bug report to help us improve
labels: bug, triage
---

## 🐛 Bug Report

<!-- A clear and concise description of what the bug is -->

## To Reproduce

<!-- How to reproduce the bug -->

## Your Environment

<!-- Include as many relevant details about the environment you experienced the bug in.-->

**Please fill this part, failure to do so will lead to your issue being directly closed.**

- Backend impacted (Torch, MLX, or Rust):
- Operating system (OSX, Windows, Linux):
- Operating system version:

If the backend impacted is Torch:
- Python version:
- PyTorch version:
- CUDA version (run `python -c 'import torch; print(torch.version.cuda)'`):
- GPU model and memory:
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: "❓Questions/Help/Support"
about: If you have a question about the paper, code or algorithm, please ask here!
labels: question, triage
---

## ❓ Questions

<!-- (Please ask your question here.) -->
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Test
21 changes: 21 additions & 0 deletions .github/actions/moshi_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: moshi_build
description: 'Build env.'
runs:
using: "composite"
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/cache@v3
id: cache
with:
path: env
key: env-${{ hashFiles('moshi/pyproject.toml') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
python3 -m venv env
. env/bin/activate
python -m pip install --upgrade pip
pip install -e './moshi[dev]'
17 changes: 17 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: precommmit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
run_precommit:
name: Run precommit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/moshi_build
- run: |
. env/bin/activate
bash .git/hooks/pre-commit
File renamed without changes.
30 changes: 30 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Contributing to Moshi

## Pull Requests

Moshi is the implementation of a research paper.
Therefore, we do not plan on accepting many pull requests for new features.
We certainly welcome them for bug fixes.

1. Fork the repo and create your branch from `main`.
2. If you've changed APIs, update the documentation.
3. Ensure pre-commit hooks pass properly, in particular the linting and typing.
4. Accept the Contributor License Agreement (see after).

Note that in general we will not accept refactoring of the code.


## Contributor License Agreement ("CLA")

In order to accept your pull request, we need you to submit a Contributtor License Agreement.
As this CLA is not ready yet, we will delay acceptance of your PR.

## Issues

Please submit issues on our Github repository.

## License

By contributing to Moshi, you agree that your contributions will be licensed
under the LICENSE-* files in the root directory of this source tree.
In particular, the rust code is licensed under APACHE, and the python code under MIT.
8 changes: 8 additions & 0 deletions moshi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["moshi", "moshi.utils", "moshi.modules", "moshi.models", "moshi.quantization"]


[project.optional-dependencies]
dev = [
"pyright",
"flake8",
"pre-commit",
]
Empty file modified moshi_mlx/setup.cfg
100755 → 100644
Empty file.

0 comments on commit 07bdd3d

Please sign in to comment.