hourai3
Collection
14 items • Updated
How to use WariHima/hourai3-zenz-90m-v1-gguf with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf WariHima/hourai3-zenz-90m-v1-gguf # Run inference directly in the terminal: llama cli -hf WariHima/hourai3-zenz-90m-v1-gguf
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf WariHima/hourai3-zenz-90m-v1-gguf # Run inference directly in the terminal: llama cli -hf WariHima/hourai3-zenz-90m-v1-gguf
# 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 WariHima/hourai3-zenz-90m-v1-gguf # Run inference directly in the terminal: ./llama-cli -hf WariHima/hourai3-zenz-90m-v1-gguf
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 WariHima/hourai3-zenz-90m-v1-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf WariHima/hourai3-zenz-90m-v1-gguf
docker model run hf.co/WariHima/hourai3-zenz-90m-v1-gguf
How to use WariHima/hourai3-zenz-90m-v1-gguf with Ollama:
ollama run hf.co/WariHima/hourai3-zenz-90m-v1-gguf
How to use WariHima/hourai3-zenz-90m-v1-gguf with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for WariHima/hourai3-zenz-90m-v1-gguf to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for WariHima/hourai3-zenz-90m-v1-gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for WariHima/hourai3-zenz-90m-v1-gguf to start chatting
How to use WariHima/hourai3-zenz-90m-v1-gguf with Docker Model Runner:
docker model run hf.co/WariHima/hourai3-zenz-90m-v1-gguf
How to use WariHima/hourai3-zenz-90m-v1-gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull WariHima/hourai3-zenz-90m-v1-gguf
lemonade run user.hourai3-zenz-90m-v1-gguf-{{QUANT_TAG}}lemonade list
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for WariHima/hourai3-zenz-90m-v1-gguf to start chatting# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for WariHima/hourai3-zenz-90m-v1-gguf to start chattingzenz v3互換のカナ漢字変換モデルです
can use upsteream llama.cpp
import llama_cpp
llm = llama_cpp.Llama(
model_path="./hourai3-zenz-90m-v1.gguf",
embedding=False,
verbose=False
)
while True:
input_text = input("入力した文章が漢字交じり文に変換されます。カタカナのみで入力。exitを入力で終了:")
if input_text == "exit":
break
text = f"<s>\uEE00{input_text}\uEE01"
output_text = llm(
text,
max_tokens=10, # 生成する最大トークン数
temperature=0.0, # ランダム性(0.0に近づくほど確実な出力、1.0以上で多様化)
top_k=40, # 上位k個の候補に絞り込む
top_p=0.95, # 累積確率p以下の候補に絞り込む
repeat_penalty=1.1, # 同じ単語の繰り返しを抑制するペナルティ
stop=[],
echo=False
)["choices"][0]["text"]
print(f"入力|出力: {input_text}|{output_text}")
変換時、qwen3nextがgpt-2トークナイザで使用することを想定されていなかったため、
llama.cppリポジトリのconversion/base.pyファイルの
以下のエラーをバイパスする必要がありました。
1687=1699付近
if res is None:
logger.warning("\n")
logger.warning("**************************************************************************************")
logger.warning("** WARNING: The BPE pre-tokenizer was not recognized!")
logger.warning("** There are 2 possible reasons for this:")
logger.warning("** - the model has not been added to convert_hf_to_gguf_update.py yet")
logger.warning("** - the pre-tokenization config has changed upstream")
logger.warning("** Check your model files and convert_hf_to_gguf_update.py and update them accordingly.")
logger.warning("** ref: https://github.com/ggml-org/llama.cpp/pull/6920")
logger.warning("**")
logger.warning(f"** chkhsh: {chkhsh}")
logger.warning("**************************************************************************************")
logger.warning("\n")
return "default"
#raise NotImplementedError("BPE pre-tokenizer was not recognized - update get_vocab_base_pre()")
想定されていないことによる変換時のエラーなので、推論時はmainstreamのllama.cppで動作します。
We're not able to determine the quantization variants.
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for WariHima/hourai3-zenz-90m-v1-gguf to start chatting