Spaces:
Sleeping
Sleeping
update demo
Browse files
Dockerfile
CHANGED
@@ -44,7 +44,9 @@ RUN useradd -m -u 1000 user
|
|
44 |
USER user
|
45 |
# Set home to the user's home directory
|
46 |
ENV HOME=/home/user \
|
47 |
-
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
48 |
|
49 |
# Set the working directory to the user's home directory
|
50 |
WORKDIR $HOME/app
|
@@ -65,14 +67,14 @@ RUN git lfs install
|
|
65 |
|
66 |
RUN pip install -r requirements.txt
|
67 |
|
68 |
-
RUN ls -lh
|
69 |
|
70 |
-
WORKDIR $HOME/app/pretrained
|
71 |
-
RUN git lfs install
|
72 |
-
RUN git clone https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip
|
73 |
-
RUN git clone https://huggingface.co/AILab-CVC/seed-tokenizer-2
|
74 |
-
RUn git clone https://huggingface.co/AILab-CVC/seed-llama-14b-sft
|
75 |
|
76 |
-
WORKDIR $HOME/app
|
77 |
CMD ["bash", "start.sh"]
|
78 |
# CMD ["python", 'start.py']
|
|
|
44 |
USER user
|
45 |
# Set home to the user's home directory
|
46 |
ENV HOME=/home/user \
|
47 |
+
PATH=/home/user/.local/bin:$PATH \
|
48 |
+
HF_HOME=/data/.huggingface \
|
49 |
+
TORCH_HOME=/data/.huggingface
|
50 |
|
51 |
# Set the working directory to the user's home directory
|
52 |
WORKDIR $HOME/app
|
|
|
67 |
|
68 |
RUN pip install -r requirements.txt
|
69 |
|
70 |
+
# RUN ls -lh
|
71 |
|
72 |
+
# WORKDIR $HOME/app/pretrained
|
73 |
+
# RUN git lfs install
|
74 |
+
# RUN git clone https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip
|
75 |
+
# RUN git clone https://huggingface.co/AILab-CVC/seed-tokenizer-2
|
76 |
+
# RUn git clone https://huggingface.co/AILab-CVC/seed-llama-14b-sft
|
77 |
|
78 |
+
# WORKDIR $HOME/app
|
79 |
CMD ["bash", "start.sh"]
|
80 |
# CMD ["python", 'start.py']
|
configs/llm/seed_llama_14b_8bit.yaml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
_target_: transformers.LlamaForCausalLM.from_pretrained
|
2 |
-
|
3 |
-
pretrained_model_name_or_path: ${oc.env:PROJECT_ROOT}/pretrained/seed_llama_14b_sft
|
4 |
load_in_8bit: True
|
5 |
# device_map: auto
|
6 |
low_cpu_mem_usage: True
|
|
|
1 |
_target_: transformers.LlamaForCausalLM.from_pretrained
|
2 |
+
pretrained_model_name_or_path: AILab-CVC/seed-llama-14b-sft
|
3 |
+
# pretrained_model_name_or_path: ${oc.env:PROJECT_ROOT}/pretrained/seed_llama_14b_sft
|
4 |
load_in_8bit: True
|
5 |
# device_map: auto
|
6 |
low_cpu_mem_usage: True
|
configs/tokenizer/seed_llama_tokenizer_hf.yaml
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
_target_: models.seed_llama_tokenizer.SeedLlamaTokenizer.from_pretrained
|
2 |
-
|
3 |
-
pretrained_model_name_or_path: ${oc.env:PROJECT_ROOT}/pretrained/seed-tokenizer-2
|
4 |
fp16: True
|
5 |
load_diffusion: False
|
6 |
-
|
7 |
-
encoder_url: ${oc.env:PROJECT_ROOT}/pretrained/seed-tokenizer-2/seed_quantizer.pt
|
8 |
-
diffusion_path: ${oc.env:PROJECT_ROOT}/pretrained/stable-diffusion-2-1-unclip
|
|
|
|
1 |
_target_: models.seed_llama_tokenizer.SeedLlamaTokenizer.from_pretrained
|
2 |
+
pretrained_model_name_or_path: AILab-CVC/seed-tokenizer-2
|
3 |
+
# pretrained_model_name_or_path: ${oc.env:PROJECT_ROOT}/pretrained/seed-tokenizer-2
|
4 |
fp16: True
|
5 |
load_diffusion: False
|
6 |
+
encoder_url: https://huggingface.co/AILab-CVC/seed-tokenizer-2/resolve/main/seed_quantizer.pt
|
7 |
+
# encoder_url: ${oc.env:PROJECT_ROOT}/pretrained/seed-tokenizer-2/seed_quantizer.pt
|
8 |
+
# diffusion_path: ${oc.env:PROJECT_ROOT}/pretrained/stable-diffusion-2-1-unclip
|
9 |
+
diffusion_path: stabilityai/stable-diffusion-2-1-unclip
|