Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
verl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhangXiaoyun
verl
Commits
a33a3bab
Unverified
Commit
a33a3bab
authored
Jan 17, 2025
by
Chi Zhang
Committed by
GitHub
Jan 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[misc] fix: fix license (#110)
- fix license - add license ci
parent
c1d5e76f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
93 additions
and
0 deletions
+93
-0
.github/workflows/sanity.yml
+3
-0
docs/conf.py
+14
-0
tests/e2e/__init__.py
+13
-0
tests/model/test_transformer.py
+14
-0
tests/sanity/check_license.py
+35
-0
verl/models/llama/__init__.py
+13
-0
verl/trainer/ppo/core_algos.py
+1
-0
No files found.
.github/workflows/sanity.yml
View file @
a33a3bab
...
...
@@ -37,3 +37,6 @@ jobs:
-
name
:
Run untility test
run
:
|
pytest -s -x tests/utility
-
name
:
Run license test
run
:
|
python3 tests/sanity/check_license.py --directory .
docs/conf.py
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
#
# 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.
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
...
...
tests/e2e/__init__.py
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
#
# 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.
tests/model/test_transformer.py
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
#
# 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.
import
torch
from
verl.utils.model
import
create_random_mask
,
compute_position_id_with_mask
from
verl.utils.torch_functional
import
masked_mean
,
log_probs_from_logits_all_rmpad
,
logprobs_from_logits
...
...
tests/sanity/check_license.py
0 → 100644
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
#
# 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.
license_head
=
"Copyright 2024 Bytedance Ltd. and/or its affiliates"
from
pathlib
import
Path
from
argparse
import
ArgumentParser
if
__name__
==
'__main__'
:
parser
=
ArgumentParser
()
parser
.
add_argument
(
'--directory'
,
'-d'
,
required
=
True
,
type
=
str
)
args
=
parser
.
parse_args
()
directory_in_str
=
args
.
directory
pathlist
=
Path
(
directory_in_str
)
.
glob
(
'**/*.py'
)
for
path
in
pathlist
:
# because path is object not string
path_in_str
=
str
(
path
.
absolute
())
with
open
(
path_in_str
,
'r'
)
as
f
:
file_content
=
f
.
read
()
assert
license_head
in
file_content
,
f
'file {path_in_str} does not contain license'
print
(
path_in_str
)
verl/models/llama/__init__.py
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
#
# 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.
verl/trainer/ppo/core_algos.py
View file @
a33a3bab
# Copyright 2024 Bytedance Ltd. and/or its affiliates
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment