Instructions to use lerugray/chaeronea-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use lerugray/chaeronea-7b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="lerugray/chaeronea-7b", filename="chaeronea-qwen2-5-7b-instruct-Q5_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use lerugray/chaeronea-7b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf lerugray/chaeronea-7b:Q5_K_M # Run inference directly in the terminal: llama cli -hf lerugray/chaeronea-7b:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf lerugray/chaeronea-7b:Q5_K_M # Run inference directly in the terminal: llama cli -hf lerugray/chaeronea-7b:Q5_K_M
Use pre-built binary
# 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 lerugray/chaeronea-7b:Q5_K_M # Run inference directly in the terminal: ./llama-cli -hf lerugray/chaeronea-7b:Q5_K_M
Build from source code
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 lerugray/chaeronea-7b:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf lerugray/chaeronea-7b:Q5_K_M
Use Docker
docker model run hf.co/lerugray/chaeronea-7b:Q5_K_M
- LM Studio
- Jan
- vLLM
How to use lerugray/chaeronea-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lerugray/chaeronea-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lerugray/chaeronea-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lerugray/chaeronea-7b:Q5_K_M
- Ollama
How to use lerugray/chaeronea-7b with Ollama:
ollama run hf.co/lerugray/chaeronea-7b:Q5_K_M
- Unsloth Studio
How to use lerugray/chaeronea-7b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 lerugray/chaeronea-7b to start chatting
Install Unsloth Studio (Windows)
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 lerugray/chaeronea-7b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for lerugray/chaeronea-7b to start chatting
- Atomic Chat new
- Docker Model Runner
How to use lerugray/chaeronea-7b with Docker Model Runner:
docker model run hf.co/lerugray/chaeronea-7b:Q5_K_M
- Lemonade
How to use lerugray/chaeronea-7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull lerugray/chaeronea-7b:Q5_K_M
Run and chat with the model
lemonade run user.chaeronea-7b-Q5_K_M
List all available models
lemonade list
| language: | |
| - en | |
| license: cc-by-nc-4.0 | |
| tags: | |
| - text-generation | |
| - history | |
| - ancient-greece | |
| - voice-model | |
| - ollama | |
| - elect | |
| base_model: Qwen/Qwen2.5-7B-Instruct | |
| # chaeronea: Philip II of Macedon (382–336 BC) | |
| > **PLAUSIBLE PHILIP, a constructed voice-model.** Philip II left almost no first-person | |
| > text. This model is trained first on his real recorded words, then on a plausible voice | |
| > extrapolated from the secondary record. It is honest about the difference. Do not treat | |
| > its outputs as historical quotations. | |
| Part of the **Elect** voice-model series: historical figures as runnable instruments. | |
| ## What this is | |
| A fine-tuned Qwen2.5-7B-Instruct that targets the documented register of Philip II of | |
| Macedon: dry, ironic, pragmatic. Philip reasons from interest rather than principle. He | |
| does not moralize or posture. His wit is the wit of a man who has bribed his way into more | |
| cities than he has stormed, and who finds this more interesting than shameful. | |
| The contrast with the other Elect voices is deliberate. Philip is the realpolitik voice | |
| where Müntzer is apocalyptic fury, Marx is systemic critique, Joan is divine certainty. | |
| Philip has no system. He has a ledger. | |
| ## The honest thinness | |
| Philip's surviving first-person corpus is the thinnest of any figure in the series, thinner | |
| even than Joan of Arc. What survives is a scatter of recorded speech: roughly thirty | |
| apophthegms preserved by Plutarch, and one diplomatic letter. The model is built in two | |
| layers, and the distinction is the whole point. | |
| **T1, real recorded speech.** Plutarch, *Sayings of Kings and Commanders* (Apophthegmata | |
| Regum, ch. 26), Babbitt translation (Loeb, 1931); and Demosthenes 12, *Philip's Letter*, | |
| Vince & Vince translation (Loeb, 1926). Both are US public domain. | |
| **T2, a constructed plausible Philip.** A separate pass extrapolates his voice from the | |
| secondary record (Diodorus Siculus Book 16; Justin, *Epitome* Books 7 to 9), generated in | |
| persona by an off-platform model and register-checked. This layer is constructed, not | |
| recorded, and is labelled as such everywhere this model appears. | |
| This is the closest approximation of Philip's register the record permits, labelled | |
| honestly. It is not pretending to be Philip's ghost. | |
| ## Example exchanges | |
| Real outputs from this model: | |
| > **Is there any fortress that cannot be taken?** | |
| > Yes, the tomb. | |
| > **Athens calls you a barbarian. How do you answer them?** | |
| > I am their king, not their teacher. | |
| > **What advice do you give your son Alexander about ruling?** | |
| > Be kind and gentle, but be careful not to let them know it. | |
| ## Running it | |
| Q5_K_M GGUF, served with Ollama. Pair it with the elicitation frame (a "questioner puts | |
| this to Philip" template); see the `Modelfile` in the project repo. Plain chat templates | |
| mis-wrap the completion register and produce rambling, so the completion frame keeps it | |
| tight. | |
| ## Intended uses | |
| - The Elect console (Ollama serve plus chat) | |
| - Historical dialogue and character embodiment | |
| - Research into ancient Macedonian rhetoric and diplomacy | |
| ## Limitations | |
| This is a plausible reconstruction, not a transcript. Philip's surviving direct speech is | |
| thin (~28 apophthegms plus 23 letter sections), and the T2 layer extrapolates from | |
| secondary sources. Because the corpus is so thin, the model can occasionally break register, | |
| trailing into analysis or third-person commentary on the shortest prompts. Treat every | |
| output as a plausible Philip, never as a historical quotation. | |
| ## License | |
| CC-BY-NC-4.0. The model weights (GGUF) are released publicly under this license. The | |
| training corpus is not bundled: the T1 sources are public domain and rebuildable from the | |
| citations above (Perseus and Loeb), and the constructed T2 layer is generated text that is | |
| not redistributed. Translations used (Babbitt 1931, Vince 1926) are US public domain. | |