Skip to content

Commit

Permalink
rename to DOLMA
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Feb 21, 2023
1 parent 4eb7334 commit 74efc01
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body:
```python
# All necessary imports at the beginning
import damia
import dolma
# A succinct reproducing example trimmed down to the essential parts:
assert False is True, "Oh no!"
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: 📚 Documentation
description: Report an issue related to https://damia.readthedocs.io/latest
description: Report an issue related to https://dolma.readthedocs.io/latest
labels: 'documentation'

body:
- type: textarea
attributes:
label: 📚 The doc issue
description: >
A clear and concise description of what content in https://damia.readthedocs.io/latest is an issue.
A clear and concise description of what content in https://dolma.readthedocs.io/latest is an issue.
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
if: always()
run: |
. .venv/bin/activate
pip uninstall -y damia
pip uninstall -y dolma
release:
name: Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- main
paths:
- 'damia/**'
- 'dolma/**'

jobs:
changelog:
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ When you're ready to contribute code to address an open issue, please follow the

Then you can create and activate a new Python environment by running:

conda create -n damia python=3.9
conda activate damia
conda create -n dolma python=3.9
conda activate dolma

Once your virtual environment is activated, you can install your local clone in "editable mode" with

Expand Down Expand Up @@ -139,13 +139,13 @@ When you're ready to contribute code to address an open issue, please follow the

We also strive to maintain high test coverage, so most contributions should include additions to [the unit tests](https://github.com/allenai/LLM/tree/main/tests). These tests are run with [`pytest`](https://docs.pytest.org/en/latest/), which you can use to locally run any test modules that you've added or changed.

For example, if you've fixed a bug in `damia/a/b.py`, you can run the tests specific to that module with
For example, if you've fixed a bug in `dolma/a/b.py`, you can run the tests specific to that module with

pytest -v tests/a/b_test.py

To check the code coverage locally in this example, you could run

pytest -v --cov damia.a.b tests/a/b_test.py
pytest -v --cov dolma.a.b tests/a/b_test.py

If your contribution involves additions to any public part of the API, we require that you write docstrings
for each function, method, class, or module that you add.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ run-checks :
black --check .
flake8 .
mypy .
CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ damia/
CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ dolma/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# AI2 Large Language Model (codename: DAMIA)
# DOLMA: Delightful Open Language Model from AI2
2 changes: 1 addition & 1 deletion RELEASE_PROCESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Steps

1. Update the version in `damia/version.py`.
1. Update the version in `dolma/version.py`.

3. Run the release script:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/prepare_changelog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from pathlib import Path

from damia.version import VERSION
from dolma.version import VERSION


def main():
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

TAG=$(python -c 'from damia.version import VERSION; print("v" + VERSION)')
TAG=$(python -c 'from dolma.version import VERSION; print("v" + VERSION)')

read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def read_requirements(filename: str):
# version.py defines the VERSION and VERSION_SHORT variables.
# We use exec here so we don't import cached_path whilst setting up.
VERSION = {} # type: ignore
with open("damia/version.py", "r") as version_file:
with open("dolma/version.py", "r") as version_file:
exec(version_file.read(), VERSION)

setup(
name="damia",
name="dolma",
version=VERSION["VERSION"],
description="",
long_description=open("README.md").read(),
Expand All @@ -39,7 +39,7 @@ def read_requirements(filename: str):
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
),
package_data={"damia": ["py.typed"]},
package_data={"dolma": ["py.typed"]},
install_requires=read_requirements("requirements.txt"),
extras_require={"dev": read_requirements("dev-requirements.txt")},
python_requires=">=3.8",
Expand Down

0 comments on commit 74efc01

Please sign in to comment.