AdithyaSK's picture
AdithyaSK HF Staff
Stage Harbor release files 73501-74000
5f6166b verified
Raw History Blame Contribute Delete
1.48 kB
FROM python:3.12-slim
WORKDIR /workspace
RUN python -m pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu torch==2.11.0+cpu setuptools==78.1.0 wheel==0.48.0 packaging==24.2 psutil==6.1.0 numpy==2.2.0 pytest==8.3.3 parameterized==0.9.0 PyYAML==6.0.2 safetensors==0.4.5 filelock==3.16.1 tqdm==4.67.1 requests==2.32.3 typing_extensions==4.12.2 huggingface_hub==0.27.1 tokenizers==0.21.0 regex==2024.11.6 transformers==4.47.1 pyarrow==18.1.0 xxhash==3.5.0 dill==0.3.8 multiprocess==0.70.16 datasets==3.2.0
COPY . /workspace
RUN python -m pip install --no-cache-dir --no-deps --no-build-isolation -e . && python -c "import json,os; os.makedirs('gpt2',exist_ok=True); json.dump({'activation_function':'gelu_new','architectures':['GPT2LMHeadModel'],'attn_pdrop':0.1,'bos_token_id':50256,'embd_pdrop':0.1,'eos_token_id':50256,'initializer_range':0.02,'layer_norm_epsilon':1e-05,'model_type':'gpt2','n_ctx':128,'n_embd':64,'n_head':2,'n_inner':None,'n_layer':2,'n_positions':128,'reorder_and_upcast_attn':False,'resid_pdrop':0.1,'scale_attn_by_inverse_layer_idx':False,'scale_attn_weights':True,'summary_activation':None,'summary_first_dropout':0.1,'summary_proj_to_labels':True,'summary_type':'cls_index','summary_use_proj':True,'vocab_size':1000},open('gpt2/config.json','w'))"
RUN rm -rf /workspace/.git /root/.cache/pip
ENV PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
ENV HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 HF_DATASETS_OFFLINE=1