Views
No views yet

gemma-2b-orpo model:
an ORPO fine-tune of google/gemma-2b.gemma-2b-orpo model card1! pip install llama-cpp-python
2
3from llama_cpp import Llama
4
5llm = Llama.from_pretrained(
6 repo_id="anakin87/gemma-2b-orpo-GGUF",
7 filename="gemma-2b-orpo.Q5_K_M.gguf",
8 verbose=True # for a known bug, verbose must be True
9)
10
11# text generation - prompt template applied manually
12llm("<bos><|im_start|> user\nName the planets in the solar system<|im_end|>\n<|im_start|>assistant\n", max_tokens=75)
13
14# chat completion - prompt template automatically applied
15llm.create_chat_completion(
16 messages = [
17 {
18 "role": "user",
19 "content": "Please list some places to visit in Italy"
20 }
21 ]
22)