Views
No views yet
North-ML1/Forge-1-Mini.<|im_end|>.llama-cli -m Forge-1-Mini-Q4_K_M.gguf -cnv -p "Hi" -st -n 64 --temp 0tokenizer.ggml.eot_token_id=5, where token 5 is <|im_end|>.1from llama_cpp import Llama
2
3llm = Llama(model_path="Forge-1-Mini-Q4_K_M.gguf", n_ctx=512)
4out = llm.create_chat_completion(
5 messages=[{"role": "user", "content": "What is 2 + 2?"}],
6 max_tokens=96,
7 temperature=0.0,
8 stop=["<|im_end|>"],
9)
10print(out["choices"][0]["message"]["content"].strip())4| File | Quantization | Size |
|---|---|---|
Forge-1-Mini-F16.gguf | F16 | 9.9 MB |
Forge-1-Mini-Q8_0.gguf | Q8_0 | 5.3 MB |
Forge-1-Mini-Q4_K_M.gguf | Q4_K_M | 3.8 MB |
Forge-1-Mini-Q3_K_M.gguf | Q3_K_M | 3.1 MB |
Forge-1-Mini-Q2_K.gguf | Q2_K | 2.9 MB |
Forge-1-Mini-TQ1_0.gguf | TQ1_0 | 2.9 MB |
llama-quantize and passed a llama-cpp-python smoke test using llama.cpp tokenization and greedy sampling:1Who are you? -> I am Forge-1-Mini, a tiny local assistant created by Arthur / North ML.
2Hi -> Hi! I am Forge-1-Mini. How can I help?
3What is 2 + 2? -> 4
4Write a Python function that adds two numbers. -> def add(a, b): return a + b
5Who is Jesus? -> Christians believe Jesus Christ is the eternal Son of God...
6How should I treat someone I disagree with? -> Treat the person with dignity...