[web ui] LLaMA ์„ฑ๋Šฅ
ยท
IT/Web UI
๊ณผ์—ฐ ์–ผ๋งˆ๋‚˜ ํผํฌ๋จผ์Šค๋ฅผ ๊ฒฌ๋”œ๊นŒ? Output generated in 39.19 seconds (2.04 tokens/s, 80 tokens, context 1571) Output generated in 60.85 seconds (2.28 tokens/s, 139 tokens, context 1675)
[Web UI] ๋กœ์ปฌ ์„ค์น˜
ยท
IT/Web UI
๊นƒํ—™ : GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI GitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub. github.com Automatic Installation on Windows Install Python 3.10.6, checking "Add Python to PATH" Install git. ์˜ˆ๋ฅผ ๋“ค์–ด git clone์„ ์‹ค..
20230301 Web UI Image
ยท
IT/Web UI
Positive prompt: masterpiece, best quality, 1 girl, school uniform, classroom, sitting, smile, hand on hair, window Negative prompt: (worst quality, low quality:1.4), (realistic, lip, nose, tooth, rouge, lipstick, eyeshadow:1.0), (dusty sunbeams:1.0),, (abs, muscular, rib:1.0), (depth of field, bokeh, blurry:1.4), (greyscale, monochrome:1.0), text, title, logo, signature Steps: 20, Sampler: DPM+..
[web ui] ํ”„๋กฌํ”„ํŠธ ๋งŒ๋“œ๋Š” ๋ณด์กฐ ๋„๊ตฌ
ยท
IT/Web UI
Chat GPT ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ AIPRM for ChatGPT - Chrome ์›น ์Šคํ† ์–ด (google.com) ๋งŒ๋“ค์–ด์ง„ ์ด๋ฏธ์ง€ ํ”„๋กฌํ”„ํŠธ ํ™•์ธ PromptHero - Search prompts for Stable Diffusion, DALL-E & Midjourney open pose editor(Web UI์—์„œ open pose ์ˆ˜์ • ๋ฐ ์ƒ์„ฑ ๊ฐ€๋Šฅ) https://github.com/fkunn1326/openpose-editor
[web ui] ์“ธ๋งŒํ•œ ๋ชจ๋ธ ์ •๋ฆฌ
ยท
IT/Web UI
๋ชจ๋ธ ์ €์žฅ ์œ„์น˜ : models\Stable-diffusion VAE ์ €์žฅ ์œ„์น˜ : models\VAE ์‹ค์‚ฌ ์ด๋ฏธ์ง€ ๋ชจ๋ธ https://civitai.com/models/6424/chilloutmix ์˜ค๋ Œ์ง€ ๋ฏน์Šค ๋ชจ๋ธ (AbyssOrangeMix2_sfw.ckpt) https://huggingface.co/WarriorMama777/OrangeMixs/tree/main/Models/AbyssOrangeMix2 ๋น„์งˆ ๋ฏน์Šค ๋ชจ๋ธ (Basil_mix_fixed.safetensors) https://huggingface.co/nuigurumi/basil_mix/tree/main VAE (vae-ft-mse-840000-ema-pruned.ckpt) https://huggingface.co/stabilityai/..
gRPC ๋™๊ธฐ ๋ถ€์—ฌ ๋ฐ ๋””์ž์ธ ์›์น™(Motivation and Design Principles)
ยท
IT/gRPC
Motivation Google์€ Stubby๋ผ๋Š” ๋‹จ์ผ ๋ฒ”์šฉ RPC ์ธํ”„๋ผ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ 10๋…„ ๋„˜๊ฒŒ ๋ฐ์ดํ„ฐ ์„ผํ„ฐ ๋‚ด๋ถ€ ๋ฐ ์ „์ฒด์—์„œ ์‹คํ–‰๋˜๋Š” ์ˆ˜๋งŽ์€ ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค๋ฅผ ์—ฐ๊ฒฐํ•ด ์™”์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ์˜ ๋‚ด๋ถ€ ์‹œ์Šคํ…œ์€ ์˜ค๋Š˜๋‚  ์ธ๊ธฐ๋ฅผ ์–ป๊ณ  ์žˆ๋Š” ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค ์•„ํ‚คํ…์ฒ˜๋ฅผ ์˜ค๋žซ๋™์•ˆ ์ˆ˜์šฉํ•ด ์™”์Šต๋‹ˆ๋‹ค. ๊ท ์ผํ•œ ํฌ๋กœ์Šค ํ”Œ๋žซํผ RPC ์ธํ”„๋ผ๋ฅผ ํ†ตํ•ด ํšจ์œจ์„ฑ, ๋ณด์•ˆ, ์‹ ๋ขฐ์„ฑ ๋ฐ ํ–‰๋™ ๋ถ„์„์—์„œ ํ”Œ๋ฆฟ ์ „๋ฐ˜์˜ ๊ฐœ์„ ์„ ๋กค์•„์›ƒํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. Stubby์—๋Š” ๋งŽ์€ ํ›Œ๋ฅญํ•œ ๊ธฐ๋Šฅ์ด ์žˆ์ง€๋งŒ ํ‘œ์ค€์„ ๊ธฐ๋ฐ˜์œผ๋กœํ•˜์ง€ ์•Š์œผ๋ฉฐ ๋‚ด๋ถ€ ์ธํ”„๋ผ์™€ ๋„ˆ๋ฌด ๋ฐ€์ ‘ํ•˜๊ฒŒ ๊ฒฐํ•ฉ๋˜์–ด ๊ณต๊ฐœ ๋ฆด๋ฆฌ์Šค์— ์ ํ•ฉํ•œ ๊ฒƒ์œผ๋กœ ๊ฐ„์ฃผ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. SPDY, HTTP/2 ๋ฐ QUIC์˜ ์ถœํ˜„์œผ๋กœ Stubby๊ฐ€ ์ œ๊ณตํ•˜์ง€ ์•Š๋Š” ๋‹ค๋ฅธ ๊ธฐ๋Šฅ๊ณผ ํ•จ๊ป˜ ์ด๋Ÿฌํ•œ ๋™์ผํ•œ ๊ธฐ๋Šฅ ์ค‘ ๋งŽ์€ ๋ถ€๋ถ„์ด ๊ณต๊ฐœ ํ‘œ์ค€์— ๋“ฑ์žฅํ–ˆ์Šต๋‹ˆ..
gRPC ํ•ต์‹ฌ ๊ฐœ๋…, ์•„ํ‚คํ…์ฒ˜ ๋ฐ ์ˆ˜๋ช… ์ฃผ๊ธฐ(Core concepts, architecture and lifecycle)
ยท
IT/gRPC
gRPC์— ์ต์ˆ™ํ•˜์ง€ ์•Š์œผ์‹ ๊ฐ€์š”? ๋จผ์ € gRPC ์†Œ๊ฐœ๋ฅผ ์ฝ์–ด ๋ณด์‹ญ์‹œ์˜ค. ์–ธ์–ด๋ณ„ ์„ธ๋ถ€ ์ •๋ณด๋Š” ์„ ํƒํ•œ ์–ธ์–ด์— ๋Œ€ํ•œ ๋น ๋ฅธ ์‹œ์ž‘, ์ž์Šต์„œ ๋ฐ ์ฐธ์กฐ ์„ค๋ช…์„œ๋ฅผ ์ฐธ์กฐํ•˜์„ธ์š”. Overview Service definition ๋งŽ์€ RPC ์‹œ์Šคํ…œ๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ gRPC๋Š” ๋งค๊ฐœ ๋ณ€์ˆ˜ ๋ฐ ๋ฐ˜ํ™˜ ํ˜•์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ์›๊ฒฉ์œผ๋กœ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋Š” ๋ฉ”์„œ๋“œ๋ฅผ ์ง€์ •ํ•˜์—ฌ ์„œ๋น„์Šค๋ฅผ ์ •์˜ํ•˜๋Š” ๊ฐœ๋…์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ gRPC๋Š” ํ”„๋กœํ† ์ฝœ ๋ฒ„ํผ๋ฅผ ์„œ๋น„์Šค ์ธํ„ฐํŽ˜์ด์Šค์™€ ํŽ˜์ด๋กœ๋“œ ๋ฉ”์‹œ์ง€์˜ ๊ตฌ์กฐ๋ฅผ ๋ชจ๋‘ ์„ค๋ช…ํ•˜๊ธฐ ์œ„ํ•œ IDL(์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ ์–ธ์–ด)๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์›ํ•˜๋Š” ๊ฒฝ์šฐ ๋‹ค๋ฅธ ๋Œ€์•ˆ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. service HelloService { rpc SayHello (HelloRequest) returns (HelloResponse); } mes..
gRPC ๋ž€?(Introduction to Remote Procedure Calls)
ยท
IT/gRPC
์ด ํŽ˜์ด์ง€์—์„œ๋Š” gRPC ๋ฐ ํ”„๋กœํ† ์ฝœ ๋ฒ„ํผ๋ฅผ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค. gRPC๋Š” ํ”„๋กœํ† ์ฝœ ๋ฒ„ํผ๋ฅผ IDL(์ธํ„ฐํŽ˜์ด์Šค ์ •์˜ ์–ธ์–ด) ๋ฐ ๊ธฐ๋ณธ ๋ฉ”์‹œ์ง€ ๊ตํ™˜ ํ˜•์‹์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. gRPC ๋ฐ/๋˜๋Š” ํ”„๋กœํ† ์ฝœ ๋ฒ„ํผ๋ฅผ ์ฒ˜์Œ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ด ๋‚ด์šฉ์„ ์ฝ์–ด๋ณด์„ธ์š”. ๋จผ์ € gRPC๊ฐ€ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ์„ ๋ณด๋ ค๋ฉด ์–ธ์–ด๋ฅผ ์„ ํƒํ•˜๊ณ  ๋น ๋ฅธ ์‹œ์ž‘์„ ์‚ฌ์šฉํ•ด ๋ณด์„ธ์š”. Overview gRPC์—์„œ ํด๋ผ์ด์–ธํŠธ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์€ ๋กœ์ปฌ ๊ฐœ์ฒด์ธ ๊ฒƒ์ฒ˜๋Ÿผ ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ์˜ ์„œ๋ฒ„ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์— ์žˆ๋Š” ๋ฉ”์„œ๋“œ๋ฅผ ์ง์ ‘ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ์œผ๋ฏ€๋กœ ๋ถ„์‚ฐ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ ๋ฐ ์„œ๋น„์Šค๋ฅผ ๋” ์‰ฝ๊ฒŒ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŽ์€ RPC ์‹œ์Šคํ…œ๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ gRPC๋Š” ๋งค๊ฐœ ๋ณ€์ˆ˜ ๋ฐ ๋ฐ˜ํ™˜ ํ˜•์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ์›๊ฒฉ์œผ๋กœ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋Š” ๋ฉ”์„œ๋“œ๋ฅผ ์ง€์ •ํ•˜์—ฌ ์„œ๋น„์Šค๋ฅผ ์ •์˜ํ•˜๋Š” ๊ฐœ๋…์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. ์„œ๋ฒ„ ์ชฝ์—์„œ..
REST API๋ฅผ ์„ค๊ณ„ํ•˜๋Š” ๋ฐฉ๋ฒ•(How to Design a REST API)
ยท
IT/RESTful
REST๋ฅผ ์กฐ๊ฐ์œผ๋กœ ๋ฐฐ์šฐ๋Š” ๊ฒƒ์€ ํ•œ ๊ฐ€์ง€์ด์ง€๋งŒ ์ด๋Ÿฌํ•œ ๋ชจ๋“  ๊ฐœ๋…์„ ์‹ค์ œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ์— ์ ์šฉํ•˜๋Š” ๊ฒƒ์€ ์™„์ „ํžˆ ๋˜ ๋‹ค๋ฅธ ๊ณผ์ œ์ž…๋‹ˆ๋‹ค. ์ด ์ž์Šต์„œ์—์„œ๋Š” ๋„คํŠธ์›Œํฌ ๊ธฐ๋ฐ˜ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„์œ„ํ•œ REST API๋ฅผ ์„ค๊ณ„ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค์ค๋‹ˆ๋‹ค. ์ด ์ „์ฒด ์—ฐ์Šต์—์„œ ์–ป์€ ์š”์ ์€ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ ๋””์ž์ธ ํ”„๋กœ์„ธ์Šค์—์„œ REST ์›์น™์„ ์ ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ฐฐ์šฐ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. 1. Identify the Resources – Object Modeling REST API ๊ธฐ๋ฐ˜ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋””์ž์ธํ•˜๋Š” ์ฒซ ๋ฒˆ์งธ ๋‹จ๊ณ„๋Š” ๋ฆฌ์†Œ์Šค๋กœ ํ‘œ์‹œ๋  ์˜ค๋ธŒ์ ํŠธ๋ฅผ ์‹๋ณ„ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋„คํŠธ์›Œํฌ ๊ธฐ๋ฐ˜ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์˜ ๊ฒฝ์šฐ ๊ฐœ์ฒด ๋ชจ๋ธ๋ง์ด ํ›จ์”ฌ ๋” ๊ฐ„๋‹จํ•ฉ๋‹ˆ๋‹ค. ์žฅ์น˜, ๊ด€๋ฆฌ๋˜๋Š” ์—”ํ„ฐํ‹ฐ, ๋ผ์šฐํ„ฐ, ๋ชจ๋Ž€ ๋“ฑ๊ณผ ๊ฐ™์€ ๋งŽ์€ ํ•ญ๋ชฉ์ด ์žˆ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹จ์ˆœํ™”๋ฅผ ์œ„ํ•ด ์šฐ๋ฆฌ๋Š” ๋‘ ..
REST๋ž€?(What is REST)
ยท
IT/RESTful
REST๋Š” ์•ฝ์–ด์ž…๋‹ˆ๋‹ค. for REpresentational State Transfer and an architectural style for distributed hypermedia systems. ๋กœ์ด ํ•„๋”ฉ (Roy Fielding)์€ 2000 ๋…„ ๊ทธ์˜ ์œ ๋ช…ํ•œ ๋…ผ๋ฌธ์—์„œ ์ฒ˜์Œ์œผ๋กœ ๊ทธ๊ฒƒ์„ ๋ฐœํ‘œํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ์•„ํ‚คํ…์ฒ˜ ์Šคํƒ€์ผ๊ณผ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ REST์—๋Š” ๊ธฐ๋ณธ ์›์น™๊ณผ ์ œ์•ฝ ์กฐ๊ฑด์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์„œ๋น„์Šค ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ RESTful์ด๋ผ๊ณ  ํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ ์ด๋Ÿฌํ•œ ์›์น™์„ ์ถฉ์กฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. A Web API (or Web Service) conforming to the REST architectural style is a REST API. 1. Guiding Principles of REST RESTful ์•„ํ‚คํ…์ฒ˜์˜ 6๊ฐ€์ง€ ..