Views
No views yet
1git lfs install
2git clone https://huggingface.co/axyzdong/AMchat-GGUFMake sure you have installed ollama in advance. https://ollama.com/
ollama create AMchat -f Modelfileollama run AMchatllama-cli for conducting inference. For a detailed explanation of llama-cli, please refer to this guidellama.cpp from source. The following code snippet provides an example for the Linux CUDA platform. For instructions on other platforms, please refer to the official guide.1conda create --name AMchat python=3.10 -y
2conda activate AMchat
3pip install cmake1git clone --depth=1 https://github.com/ggerganov/llama.cpp.git
2cd llama.cpp
3cmake -B build -DGGML_CUDA=ON
4cmake --build build --config Release -jbuild/binllama.cpp.AMchat-q8_0.gguf can be downloaded as below:1pip install huggingface-hub
2huggingface-cli download axyzdong/AMchat-GGUF AMchat-q8_0.gguf --local-dir . --local-dir-use-symlinks False1build/bin/llama-cli \
2 --model AMchat-fp16.gguf \
3 --predict 512 \
4 --ctx-size 4096 \
5 --gpu-layers 24 \
6 --temp 0.8 \
7 --top-p 0.8 \
8 --top-k 50 \
9 --seed 1024 \
10 --color \
11 --prompt "<|im_start|>system\nYou are an expert in advanced math and you can answer all kinds of advanced math problems.<|im_end|>\n" \
12 --interactive \
13 --multiline-input \
14 --conversation \
15 --verbose \
16 --logdir workdir/logdir \
17 --in-prefix "<|im_start|>user\n" \
18 --in-suffix "<|im_end|>\n<|im_start|>assistant\n"