Views
No views yet
| Model File | Quantization Type | Size | Description |
|---|---|---|---|
ReaderLM-v2-Q4_K_M.gguf | Q4_K_M | 986MB | Lower precision, optimized for CPU performance |
ReaderLM-v2-Q8_0.gguf | Q8_0 | 1.6GB | Higher precision, better quality |
1git clone https://github.com/ggerganov/llama.cpp.git
2cd llama.cpp
3mkdir build && cd build
4cmake ..
5make -j$(nproc)./llama-cli --model ReaderLM-v2-Q4_K_M.gguf --no-conversation --no-display-prompt --temp 0 --prompt '<|im_start|>systemReaderLM-v2-Q4_K_M.gguf with ReaderLM-v2-Q8_0.gguf for better quality at the cost of performance.pip install llama-cpp-python1model_path = "./models/ReaderLM-v2-Q4_K_M.gguf"
2llm = Llama(model_path=model_path, chat_format="chatml")
3output = llm.create_chat_completion(
4 messages = [
5 {"role": "system", "content": "Convert the HTML to Markdown."},
6 {
7 "role": "user",
8 "content": "<html><body><h1>Hello, world!</h1><p>This is a test!</p></body></html>"
9 }
10 ],
11 temperature=0.1,
12)
13
14print(output['choices'][0]['message']['content'].strip())llama.cpp with CUDA support.