agent2-ingredient-selection-8b-gguf / GGUF_CONVERSION_INSTRUCTIONS.md
carefood's picture
Upload Agent2 Ingredient Selection Model (GGUF)
5e91e8a verified

GGUF ๋ณ€ํ™˜ ์•ˆ๋‚ด

์ด ๋ชจ๋ธ์˜ GGUF ๋ฒ„์ „์„ ์ƒ์„ฑํ•˜๋ ค๋ฉด ๋‹ค์Œ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ฅด์„ธ์š”:

์ž๋™ ๋ณ€ํ™˜ ์‹คํŒจ

์ž๋™ GGUF ๋ณ€ํ™˜์ด ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. ์ˆ˜๋™์œผ๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ์„ธ์š”.

๋ฐฉ๋ฒ• 1: llama.cpp ์‚ฌ์šฉ

# llama.cpp ์„ค์น˜
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
mkdir build && cd build
cmake .. -DLLAMA_CUBLAS=ON
cmake --build . --config Release

# ๋ณ€ํ™˜ ์‹คํ–‰
cd ..
python convert_hf_to_gguf.py ./models/agent2_safetensor --outdir ./gguf_output

๋ฐฉ๋ฒ• 2: Python ์Šคํฌ๋ฆฝํŠธ๋งŒ ์‚ฌ์šฉ

# ํ•„์š”ํ•œ ํŒจํ‚ค์ง€ ์„ค์น˜
pip install gguf numpy torch

# ์Šคํฌ๋ฆฝํŠธ ๋‹ค์šด๋กœ๋“œ
wget https://raw.githubusercontent.com/ggerganov/llama.cpp/master/convert_hf_to_gguf.py

# ๋ณ€ํ™˜ ์‹คํ–‰
python convert_hf_to_gguf.py ./models/agent2_safetensor --outdir ./gguf_output

์›๋ณธ ๋ชจ๋ธ ๊ฒฝ๋กœ

SafeTensor ๋ฒ„์ „: ./models/agent2_safetensor

๋ณ€ํ™˜ ์™„๋ฃŒ ํ›„ ์ด ํด๋”์˜ ๋‚ด์šฉ์„ GGUF ํŒŒ์ผ๋กœ ๊ต์ฒดํ•ด์ฃผ์„ธ์š”.