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"
feat(v12): add quantized GGUF Q8_0, Q4_K_M and Modelfile for Ollama
Browse files- .gitattributes +2 -0
- gguf/GGUF_V12_MANIFEST.json +20 -0
- gguf/Modelfile +14 -0
- gguf/SpaceCode-E2B-V12-Q4_K_M.gguf +3 -0
- gguf/SpaceCode-E2B-V12-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
mmproj-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
mmproj-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gguf/SpaceCode-E2B-V12-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gguf/SpaceCode-E2B-V12-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
gguf/GGUF_V12_MANIFEST.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "v12",
|
| 3 |
+
"artifacts": {
|
| 4 |
+
"SpaceCode-E2B-V12-Q8_0.gguf": {
|
| 5 |
+
"size_bytes": 4947414592,
|
| 6 |
+
"sha256": "b7e9caa9236be6e4db47bfd91fbe1e7b86155dbd415bbc3ca1190b8e1e70e4b3",
|
| 7 |
+
"type": "Q8_0 (Alta precis\u00e3o / Refer\u00eancia)"
|
| 8 |
+
},
|
| 9 |
+
"SpaceCode-E2B-V12-Q4_K_M.gguf": {
|
| 10 |
+
"size_bytes": 3416119872,
|
| 11 |
+
"sha256": "7c5ef93c767cf2c60d650791c01c7898faaa3d6dd33a4e4f7f17e63812bab460",
|
| 12 |
+
"type": "Q4_K_M (Otimizado para recursos limitados)"
|
| 13 |
+
},
|
| 14 |
+
"Modelfile": {
|
| 15 |
+
"size_bytes": 424,
|
| 16 |
+
"sha256": "f7e0b0216f7bbac6069af47f339593b7ec7bfacf81fa0a09904a20bab271d092",
|
| 17 |
+
"type": "Ollama Modelfile com templates oficiais Gemma 4"
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
gguf/Modelfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Modelfile oficial para SpaceCode-E2B V12 (Ollama)
|
| 2 |
+
FROM ./SpaceCode-E2B-V12-Q4_K_M.gguf
|
| 3 |
+
|
| 4 |
+
PARAMETER temperature 0.0
|
| 5 |
+
PARAMETER stop "<end_of_turn>"
|
| 6 |
+
PARAMETER stop "<eos>"
|
| 7 |
+
PARAMETER stop "<start_of_turn>"
|
| 8 |
+
|
| 9 |
+
TEMPLATE """<start_of_turn>user
|
| 10 |
+
{{ .Prompt }}<end_of_turn>
|
| 11 |
+
<start_of_turn>model
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
SYSTEM """Você é o SpaceCode-E2B, assistente especializado em Engenharia de Software, Desenvolvimento Web/Mobile e Tutoria Técnica."""
|
gguf/SpaceCode-E2B-V12-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c5ef93c767cf2c60d650791c01c7898faaa3d6dd33a4e4f7f17e63812bab460
|
| 3 |
+
size 3416119872
|
gguf/SpaceCode-E2B-V12-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7e9caa9236be6e4db47bfd91fbe1e7b86155dbd415bbc3ca1190b8e1e70e4b3
|
| 3 |
+
size 4947414592
|