fineweb-edu-score-2-minhash / batch_submit.sh
yizhilll's picture
Add files using upload-large-folder tool
6dd0ae1 verified
#/bin/bash
# for offset in $(seq 0 100 6000); do
# echo $offset
# done
# Store the output in an array
folders=($(ls /gpfs/public/research/liyizhi/huggingface/datasets/fineweb-edu-score-2/data/))
# Iterate over all indices
# for i in {0..94}; do
# echo "${folders[$i]}"
# done
# Iterate over a range of indices (from 5 to 10)
# 已提交:0..94
for i in {63..94}; do
sleep 2s
echo processing "${folders[$i]}"
task_name=$(echo "${folders[$i]}" | awk '{print tolower($0)}')
processed_script=$(echo -n "bash /gpfs/public/research/liyizhi/datafilter/minhash.sh ${folders[$i]}" | base64 -w 0)
curl 'https://arsenal.dh3.ai/api/v1/workloads' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en-GB,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,en-US;q=0.6' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'cookie: Arsenal-UserName=%E6%9D%8E%E4%B8%80%E4%B9%8B; Arsenal-Token=deZ50%2FVRKNk5LI3e5DMwDiAJNq1unS2y5WicS3kAniyPUnbVcMd5vMgbwuZYdagTuht07DYOGl7HfStjsUbwJXt4yG6MWFZr1w%3D%3D; Arsenal-UserId=ou-4abbe30b0a0f07192d8dbdd0e8d0566a; Arsenal-Token-Expire=1729027014; Arsenal-IsAdmin=false; Arsenal-IsQueueAdmin=false; Arsenal-UserAvatar=https%3A%2F%2Fs3-imfile.feishucdn.com%2Fstatic-resource%2Fv1%2Fv3_00ae_189cc1d3-aeb5-4aaa-996e-5b64ba7f30dg~%3Fimage_size%3D640x640%26cut_type%3D%26quality%3D%26format%3Dimage%26sticker_format%3D.webp' \
-H 'dnt: 1' \
-H 'origin: https://arsenal.dh3.ai' \
-H 'pragma: no-cache' \
-H 'priority: u=1, i' \
-H 'referer: https://arsenal.dh3.ai/arsenal/workloads/create?from=xcs-filter-2013-20-bv8wj' \
-H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \
--data-raw '{"workspace":"polaris-dev-cpu","priority":1,"displayName":"'${task_name}'","gvk":{"kind":"PyTorchJob"},"description":"","entryPoint":"'${processed_script}'","tensorboard":"","isSSHEnabled":true,"isTolerateAll":false,"tolerations":{},"image":"nvcr.io/nvidia/pytorch:23.10-py3","maxRetry":0,"env":{},"resources":[{"name":"Master","replica":1,"cpu":"50","memory":"400Gi","gpu":"","gpuType":"","shareMemory":"200Gi","ephemeralStorage":"50Gi"}],"ttlSecondsAfterFinished":10,"schedulerTime":0,"customerLabels":{}}'
done