llm-jp/magpie-sft-v1.0
Viewer • Updated • 132k • 604 • 19
How to use pokutuna/llm2024-competition with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf pokutuna/llm2024-competition:Q6_K # Run inference directly in the terminal: llama cli -hf pokutuna/llm2024-competition:Q6_K
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pokutuna/llm2024-competition:Q6_K # Run inference directly in the terminal: llama cli -hf pokutuna/llm2024-competition:Q6_K
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf pokutuna/llm2024-competition:Q6_K # Run inference directly in the terminal: ./llama-cli -hf pokutuna/llm2024-competition:Q6_K
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf pokutuna/llm2024-competition:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf pokutuna/llm2024-competition:Q6_K
docker model run hf.co/pokutuna/llm2024-competition:Q6_K
How to use pokutuna/llm2024-competition with Ollama:
ollama run hf.co/pokutuna/llm2024-competition:Q6_K
How to use pokutuna/llm2024-competition with Docker Model Runner:
docker model run hf.co/pokutuna/llm2024-competition:Q6_K
How to use pokutuna/llm2024-competition with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pokutuna/llm2024-competition:Q6_K
lemonade run user.llm2024-competition-Q6_K
lemonade list
東京大学松尾・岩澤研究室(松尾研)大規模言語モデル Deep Learning 応用講座 2024 におけるコンペティション提出物を配置するリポジトリです。
elyza/ELYZA-tasks-100 風の独自の問題に対する出力を競います。
このリポジトリには複数のモデルが含まれています。
ファイル名の prefix に応じてベースモデル・ライセンス・トレーニングデータセットが異なります。
gemma2-9b-*llm-jp-3-13b-*# lshw のインストール (ollama インストール時に GPU を検出するのに必要)
$ apt update && apt install -y lshw
# ollama (https://ollama.com/) のインストール & 起動
$ curl -fsSL https://ollama.com/install.sh | sh
$ ollama serve
# -- 以降は ollama サーバーが起動した状態で別ターミナルプロセスから実行 --
# モデルのダウンロード (2つ必要です)
$ ollama pull hf.co/pokutuna/llm2024-competition:gemma2-9b-v11.gguf
$ ollama pull hf.co/pokutuna/llm2024-competition:llm-jp-3-13b-v2-Q6_K.gguf
#
# Note.
# 各モデルのダウンロード後、success と出力されるのを確認して下さい。
# 演習環境で動作を確認済みですがネットワーク状況等により、
# timeout (context deadline exceeded) が発生することがあります。
# 何度か実行すれば走り切ります。
# 回答生成コードの pull
$ git clone https://github.com/pokutuna/llm2024-competition-runner.git
# 依存ライブラリのインストール
$ pip install -r llm2024-competition-runner/requirements.txt
jsonl 形式のタスクファイルをコマンドライン引数に渡してください
$ python ./llm2024-competition-runner/generate.py \
--tasks=./tasks.jsonl \
--outfile=./output-pokutuna.jsonl
--tasks=<path>input フィールドを持つ JSONL ファイルへのパス
(elyza-tasks-100-TV_0.jsonl と同じ構造を想定)--outfile=<path>output キーを出力結果として追加したもの演習環境でおよそ 25~35 分程度かかります
ステップ毎に outfile に書き出します、最後まで走りきらなくても提出物は生成されます
6-bit
Base model
google/gemma-2-9b