Instructions to use rombodawg/Everyone-Coder-4x7b-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rombodawg/Everyone-Coder-4x7b-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rombodawg/Everyone-Coder-4x7b-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rombodawg/Everyone-Coder-4x7b-Base") model = AutoModelForCausalLM.from_pretrained("rombodawg/Everyone-Coder-4x7b-Base") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use rombodawg/Everyone-Coder-4x7b-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rombodawg/Everyone-Coder-4x7b-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rombodawg/Everyone-Coder-4x7b-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rombodawg/Everyone-Coder-4x7b-Base
- SGLang
How to use rombodawg/Everyone-Coder-4x7b-Base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "rombodawg/Everyone-Coder-4x7b-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rombodawg/Everyone-Coder-4x7b-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "rombodawg/Everyone-Coder-4x7b-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rombodawg/Everyone-Coder-4x7b-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rombodawg/Everyone-Coder-4x7b-Base with Docker Model Runner:
docker model run hf.co/rombodawg/Everyone-Coder-4x7b-Base
Upload 5 files
Browse files
model-00001-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59bf76a81ae23edbc1845d6dfc20725a7f7167f482e9367b5a4c61be0dbf823a
|
| 3 |
+
size 9919813584
|
model-00002-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d2d08806f1b6bdaca2e2bed5edbae3d41943acf9bedbad2fc70a7ac1a086fed
|
| 3 |
+
size 9982454640
|
model-00003-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9383eac3802c898df97259418b0be990628fe5965221056f11641b41834139bc
|
| 3 |
+
size 9982454672
|
model-00004-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5028f632c65b0d9a3c05fafaf9108fe62ae88e6a24530878e2cdd2990d8fc24
|
| 3 |
+
size 9982454632
|
model-00005-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24ff58a528a4c455813dfb9baa03eae4a4c7ae8f50b6b44318f96999fe495015
|
| 3 |
+
size 8440279224
|