Skip to content

Commit

Permalink
clean unused package . (#239)
Browse files Browse the repository at this point in the history
Signed-off-by: zhanluxianshen <[email protected]>
  • Loading branch information
zhanluxianshen authored Feb 10, 2025
1 parent 3d566ad commit 7e07349
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions tests/e2e/arithmetic_sequence/rl/main_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,16 @@
"""
Using FSDPTrainer
"""
import re
import os
import hydra
import numpy as np
import ray
import torch
from torch.utils.data import DataLoader
from transformers import PreTrainedTokenizer, AutoTokenizer

import verl.utils.torch_functional as verl_F
from verl import DataProto
from verl.trainer.ppo.ray_trainer import RayPPOTrainer
from verl.utils.fs import copy_local_path_from_hdfs
from verl.utils.model import compute_position_id_with_mask
from tests.e2e.envs.digit_completion import CharTokenizer
import pandas as pd


def make_reward_function(tokenizer, num_examine):
Expand Down
1 change: 0 additions & 1 deletion verl/models/transformers/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import torch
from typing import Optional, List, Union, Tuple, Unpack, Callable

Expand Down
1 change: 0 additions & 1 deletion verl/models/transformers/qwen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import torch
from typing import Optional, Tuple

Expand Down
2 changes: 0 additions & 2 deletions verl/trainer/main_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ def run_ppo(config, compute_score=None):
@ray.remote
def main_task(config, compute_score=None):
from verl.utils.fs import copy_local_path_from_hdfs
from transformers import AutoTokenizer

# print initial config
from pprint import pprint
from omegaconf import OmegaConf
Expand Down
1 change: 0 additions & 1 deletion verl/utils/torch_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from typing import Dict, Union, List, Optional

import os
import torch
import torch.distributed
import torch.nn.functional as F
Expand Down

0 comments on commit 7e07349

Please sign in to comment.