-
Notifications
You must be signed in to change notification settings - Fork 812
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'instruct-lab:main' into word_chain_game
- Loading branch information
Showing
182 changed files
with
13,765 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
--- | ||
name: Bug report | ||
name: Bug/Problem report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
<!-- If you want to report a problem with the current model or taxonomy, please, fill out the following questionnaire. If the questionnaire doesn't match the type of problem you want to report, just delete the sections related to the model. --> | ||
|
||
**Describe the bug/problem** | ||
|
||
<!-- A concise description of what the problem is, replace "..." in the bullet list. --> | ||
|
||
- ... | ||
- ... | ||
- ... | ||
|
||
**Input given at the prompt** | ||
What you entered. | ||
|
||
<!-- What you entered, replace "..." --> | ||
|
||
``` | ||
... | ||
``` | ||
|
||
**Response that was received from the current model** | ||
|
||
<!-- What you received from the current model in response to your input, | ||
replace "..." --> | ||
|
||
**Response that was received** | ||
What you received in response to your input. | ||
``` | ||
... | ||
``` | ||
|
||
**Response that you expected instead** | ||
<!-- What you expected to receive instead, replace "...". --> | ||
|
||
**Response that was expected** | ||
What you expected to receive instead. | ||
``` | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Proposal | ||
about: Create a contribution proposal | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the proposed contribution to the taxonomy** | ||
|
||
<!-- A concise description of what the proposed contribution would bring, replace "..." in the bullet list. --> | ||
|
||
- ... | ||
- ... | ||
- ... | ||
|
||
**Input given at the prompt** | ||
|
||
<!-- What you entered, replace "..." --> | ||
|
||
``` | ||
... | ||
``` | ||
|
||
**Response from the current model** | ||
|
||
<!-- What you received from the current model in response to your input, | ||
replace "..." --> | ||
|
||
``` | ||
... | ||
``` | ||
|
||
**Response that you would expect instead with the contribution** | ||
<!-- What you expect to receive instead with the finetuned model, replace "...". --> | ||
|
||
``` | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright The InstructLab Authors, 2024 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
ci: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/scripts/** | ||
- .github/workflows/** | ||
- .github/*.yml | ||
|
||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "*.md" | ||
- docs/** | ||
|
||
knowledge: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- knowledge/** | ||
|
||
skill: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- compositional_skills/** | ||
|
||
triage-needed: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- compositional_skills/** | ||
- knowledge/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
seed_examples: list(include('seed'), min=5) | ||
task_description: str(min=1) | ||
domain: str(required=False) | ||
--- | ||
seed: | ||
answer: str(min=1) | ||
question: str(min=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
seed_examples: list(include('seed'), min=5) | ||
task_description: str(min=1) | ||
--- | ||
seed: | ||
answer: str(min=1) | ||
context: str(min=1) | ||
question: str(min=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
seed_examples: list(include('seed'), min=5) | ||
task_description: str(min=1) | ||
--- | ||
seed: | ||
answer: str(min=1) | ||
context: str(min=1,required=False) | ||
question: str(min=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
seed_examples: list(include('seed'), min=5) | ||
task_description: str(min=1) | ||
--- | ||
seed: | ||
answer: str(min=1) | ||
context: str(min=1) | ||
question: str(min=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
# Copyright The InstructLab Authors, 2024 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
if [ $# -lt 1 ]; then | ||
echo "Usage: check-yaml.sh [CHANGED_FILES] - Ensure changed Taxonomy YAML files follow proper schema" | ||
exit 1 | ||
fi | ||
|
||
CHANGED_FILES="$@" | ||
ERR=0 | ||
error() { echo "ERROR: $file:$@" 1>&2; ERR=1; } | ||
warn() { echo "WARN: $file:$@" 1>&2; } | ||
for file in ${CHANGED_FILES}; do | ||
case $file in knowledge*) | ||
error "1:1: We do not accept knowledge PRs at this time" | ||
esac | ||
if [[ "$file" != *"/qna.yaml" ]]; then | ||
error "1:1: Skills file has to be named 'qna.yaml', not '$(basename $file)'" | ||
fi | ||
yq '.created_by | length > 0' $file | grep -q false && error "$(yq '.created_by|line' $file):1: missing/empty 'created_by'" | ||
yq '.task_description | length > 0' $file | grep -q false && warn "$(yq '.task_description|line' $file):1: missing/empty 'task_description'" | ||
yq '.seed_examples' $file | grep -q null && error "$(yq '.seed_examples|line' $file):1: missing 'seed_examples'" | ||
yq '.seed_examples | length >= 5' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: less than 5 'seed_examples'" | ||
yq '.seed_examples[] | .question | length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'question's" | ||
yq '.seed_examples[] | .answer | length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'answer's" | ||
if $( yq '.seed_examples[] | has("context")' $file | grep -q true ); then | ||
yq '.seed_examples[] | .context| length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'context's" | ||
fi | ||
yq '.seed_examples[].attribution | length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'attribution's" | ||
yq '.seed_examples[].attribution[].source | length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'attribution source's" | ||
yq '.seed_examples[].attribution[].license | length > 0' $file | grep -q false && error "$(yq '.seed_examples|line' $file):1: missing/empty 'attribution license's" | ||
done | ||
exit $ERR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright The InstructLab Authors, 2024 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: "Pull Request Labeler" | ||
|
||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
sync-labels: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.