Image-Text-to-Text
Safetensors
GGUF
Portuguese
English
gemma4
code
vision
multimodal
software-engineering
react-native
android
typescript
python
unsloth
conversational
Instructions to use SpaceGhost/SpaceCode-E2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use SpaceGhost/SpaceCode-E2B 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 SpaceGhost/SpaceCode-E2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SpaceGhost/SpaceCode-E2B:Q4_K_M # Run inference directly in the terminal: llama cli -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf SpaceGhost/SpaceCode-E2B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Use Docker
docker model run hf.co/SpaceGhost/SpaceCode-E2B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use SpaceGhost/SpaceCode-E2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SpaceGhost/SpaceCode-E2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SpaceGhost/SpaceCode-E2B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SpaceGhost/SpaceCode-E2B:Q4_K_M
- Ollama
How to use SpaceGhost/SpaceCode-E2B with Ollama:
ollama run hf.co/SpaceGhost/SpaceCode-E2B:Q4_K_M
- Unsloth Desktop
- Pi
How to use SpaceGhost/SpaceCode-E2B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "SpaceGhost/SpaceCode-E2B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use SpaceGhost/SpaceCode-E2B with Docker Model Runner:
docker model run hf.co/SpaceGhost/SpaceCode-E2B:Q4_K_M
- Lemonade
How to use SpaceGhost/SpaceCode-E2B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SpaceGhost/SpaceCode-E2B:Q4_K_M
Run and chat with the model
lemonade run user.SpaceCode-E2B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use SpaceGhost/SpaceCode-E2B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default SpaceGhost/SpaceCode-E2B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use SpaceGhost/SpaceCode-E2B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SpaceGhost/SpaceCode-E2B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "SpaceGhost/SpaceCode-E2B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit History
2 days ago
-
feat(v12): add quantized GGUF Q8_0, Q4_K_M and Modelfile for Ollama
Verified signature0622fe3 -
release(v12): official merged 16-bit safetensors release of SpaceCode-E2B V12
Verified signature4094c87
5 days ago
-
fix(ollama): set official tutor SYSTEM prompt and anti-repetition parameters in Modelfile
Verified signaturea311850 -
docs: update README with multimodal mmproj and vision execution instructions
Verified signaturea2902ca -
fix(ollama): bind mmproj-F16.gguf in Modelfile and configure Gemma 4 turn stops
Verified signaturef141722 -
feat: add mmproj-F16.gguf for multimodal image support in llama.cpp and Ollama
Verified signature791f013 -
Release SpaceCode-E2B v2: Update Q4_K_M.gguf with pedagogically validated v2 weights
Verified signature2b170f3 -
docs: Update Model Card with v2 official production release and benchmark audit
Verified signaturee98d5fe -
Persist Master LoRA checkpoint (84 steps, loss=1.1474, unified vFinal)
Verified signature7f2753e -
Persist v4 corrective LoRA checkpoint (40 steps, loss=1.3986, static analysis + npm vs npx + useEffect)
Verified signature38d2ae7 -
Persist v3 LoRA checkpoint (60 steps, loss=1.3362, pedagogical 5 pillars)
Verified signature63d78f2 -
Docs: Mark SpaceCode-E2B v2 as first pedagogically validated release (88% 50-MCQ, 95.20% composite score)
Verified signature37a640e -
Release SpaceCode-E2B v2 Merged 16-bit (APROVADO PARA PRODUÇÃO EDUCACIONAL - 88% 50-MCQ, 95.2% composite)
Verified signature5410da1 -
Release v2 LoRA adapter (pedagogically validated: 88% 50-MCQ, 95.2% composite score, 0 quiz-leakage)
Verified signature53efac5 -
docs: update README.md for unified SpaceCode-E2B repository
Verified signature99b03f4 -
feat: update Modelfile for Q4_K_M.gguf
Verified signature8726111 -
feat: add Q4_K_M.gguf to unified repository
Verified signature59b69be -
feat: add QLoRA adapter in lora/ subfolder for continual training
Verified signaturefe9a414 -
docs: update public Model Card
Verified signature1c0d433 -
docs: sync official SpaceCode 131-example Model Card and lineage
Verified signature1383452 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fasterdbc5242 -
(Trained with Unsloth)
Verified signaturef7f337f -
(Trained with Unsloth)
Verified signature30a9314 -
Unsloth Model Card
Verified signatureae5d91e -
initial commit
Verified signature0db4665