3010
Browse files- result_grid.jpg → result_grid.png +2 -2
- samples/unet_320x640_0.jpg +2 -2
- samples/unet_384x640_0.jpg +2 -2
- samples/unet_448x640_0.jpg +2 -2
- samples/unet_512x640_0.jpg +2 -2
- samples/unet_576x640_0.jpg +2 -2
- samples/unet_640x320_0.jpg +2 -2
- samples/unet_640x384_0.jpg +2 -2
- samples/unet_640x448_0.jpg +2 -2
- samples/unet_640x512_0.jpg +2 -2
- samples/unet_640x576_0.jpg +2 -2
- samples/unet_640x640_0.jpg +2 -2
- src/model_create.ipynb +1 -1
- src/sample-Copy1.ipynb +0 -0
- src/sample.ipynb +0 -0
- text_encoder/config.json +2 -2
- text_encoder/generation_config.json +3 -0
- text_encoder/model.safetensors +2 -2
- tokenizer/chat_template.jinja +12 -8
- tokenizer/tokenizer.json +2 -2
- tokenizer/tokenizer_config.json +2 -2
- unet/config.json +2 -2
- unet/diffusion_pytorch_model.safetensors +2 -2
result_grid.jpg → result_grid.png
RENAMED
|
File without changes
|
samples/unet_320x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_384x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_448x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_512x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_576x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x320_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x384_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x448_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x512_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x576_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
samples/unet_640x640_0.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
src/model_create.ipynb
CHANGED
|
@@ -625,7 +625,7 @@
|
|
| 625 |
"name": "python",
|
| 626 |
"nbconvert_exporter": "python",
|
| 627 |
"pygments_lexer": "ipython3",
|
| 628 |
-
"version": "3.
|
| 629 |
}
|
| 630 |
},
|
| 631 |
"nbformat": 4,
|
|
|
|
| 625 |
"name": "python",
|
| 626 |
"nbconvert_exporter": "python",
|
| 627 |
"pygments_lexer": "ipython3",
|
| 628 |
+
"version": "3.12.3"
|
| 629 |
}
|
| 630 |
},
|
| 631 |
"nbformat": 4,
|
src/sample-Copy1.ipynb
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
src/sample.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
text_encoder/config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39738c799f70b98f75dace818f14bfffb0b34fad25d41b80b6236e20a731c740
|
| 3 |
+
size 1359
|
text_encoder/generation_config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3e057bbca66b92f33a8bdc6a1301014e0e4ab69b3b3fd2e442d9fe0c69f3431
|
| 3 |
+
size 214
|
text_encoder/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3184342876e1e64cd98164dc01aaaf69177a9d0ed80725816e3225977ab2982
|
| 3 |
+
size 1192134784
|
tokenizer/chat_template.jinja
CHANGED
|
@@ -17,23 +17,27 @@
|
|
| 17 |
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 18 |
{%- for message in messages[::-1] %}
|
| 19 |
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 20 |
-
{%- if ns.multi_step_tool and message.role == "user" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
|
| 21 |
{%- set ns.multi_step_tool = false %}
|
| 22 |
{%- set ns.last_query_index = index %}
|
| 23 |
{%- endif %}
|
| 24 |
{%- endfor %}
|
| 25 |
{%- for message in messages %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
| 27 |
-
{{- '<|im_start|>' + message.role + '\n' +
|
| 28 |
{%- elif message.role == "assistant" %}
|
| 29 |
-
{%- set content = message.content %}
|
| 30 |
{%- set reasoning_content = '' %}
|
| 31 |
-
{%- if message.reasoning_content is
|
| 32 |
{%- set reasoning_content = message.reasoning_content %}
|
| 33 |
{%- else %}
|
| 34 |
-
{%- if '</think>' in
|
| 35 |
-
{%- set
|
| 36 |
-
{%- set
|
| 37 |
{%- endif %}
|
| 38 |
{%- endif %}
|
| 39 |
{%- if loop.index0 > ns.last_query_index %}
|
|
@@ -70,7 +74,7 @@
|
|
| 70 |
{{- '<|im_start|>user' }}
|
| 71 |
{%- endif %}
|
| 72 |
{{- '\n<tool_response>\n' }}
|
| 73 |
-
{{-
|
| 74 |
{{- '\n</tool_response>' }}
|
| 75 |
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 76 |
{{- '<|im_end|>\n' }}
|
|
|
|
| 17 |
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
| 18 |
{%- for message in messages[::-1] %}
|
| 19 |
{%- set index = (messages|length - 1) - loop.index0 %}
|
| 20 |
+
{%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
|
| 21 |
{%- set ns.multi_step_tool = false %}
|
| 22 |
{%- set ns.last_query_index = index %}
|
| 23 |
{%- endif %}
|
| 24 |
{%- endfor %}
|
| 25 |
{%- for message in messages %}
|
| 26 |
+
{%- if message.content is string %}
|
| 27 |
+
{%- set content = message.content %}
|
| 28 |
+
{%- else %}
|
| 29 |
+
{%- set content = '' %}
|
| 30 |
+
{%- endif %}
|
| 31 |
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
| 32 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 33 |
{%- elif message.role == "assistant" %}
|
|
|
|
| 34 |
{%- set reasoning_content = '' %}
|
| 35 |
+
{%- if message.reasoning_content is string %}
|
| 36 |
{%- set reasoning_content = message.reasoning_content %}
|
| 37 |
{%- else %}
|
| 38 |
+
{%- if '</think>' in content %}
|
| 39 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 40 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 41 |
{%- endif %}
|
| 42 |
{%- endif %}
|
| 43 |
{%- if loop.index0 > ns.last_query_index %}
|
|
|
|
| 74 |
{{- '<|im_start|>user' }}
|
| 75 |
{%- endif %}
|
| 76 |
{{- '\n<tool_response>\n' }}
|
| 77 |
+
{{- content }}
|
| 78 |
{{- '\n</tool_response>' }}
|
| 79 |
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 80 |
{{- '<|im_end|>\n' }}
|
tokenizer/tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
tokenizer/tokenizer_config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:443bfa629eb16387a12edbf92a76f6a6f10b2af3b53d87ba1550adfcf45f7fa0
|
| 3 |
+
size 5404
|
unet/config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:636ed60d2a73b31fe88849234ff578446cd018092fdc9210575893551220bfc3
|
| 3 |
+
size 1887
|
unet/diffusion_pytorch_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8ec1c74913276f691c838b5a85cd65939c4437c0ce1741f69c8c8931dd39112
|
| 3 |
+
size 3092571208
|