Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use jaspionjader/sof-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jaspionjader/sof-5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jaspionjader/sof-5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jaspionjader/sof-5") model = AutoModelForCausalLM.from_pretrained("jaspionjader/sof-5") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jaspionjader/sof-5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jaspionjader/sof-5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jaspionjader/sof-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jaspionjader/sof-5
- SGLang
How to use jaspionjader/sof-5 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 "jaspionjader/sof-5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jaspionjader/sof-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "jaspionjader/sof-5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jaspionjader/sof-5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jaspionjader/sof-5 with Docker Model Runner:
docker model run hf.co/jaspionjader/sof-5
Upload folder using huggingface_hub
Browse files- README.md +4 -4
- mergekit_config.yml +1 -1
- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
- jaspionjader/sof-3
|
| 4 |
-
- jaspionjader/Kosmos-EVAA-Franken-stock-v43-8B
|
| 5 |
- jaspionjader/ek-6
|
| 6 |
-
- jaspionjader/sof-
|
|
|
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mergekit
|
|
@@ -24,7 +24,7 @@ This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522)
|
|
| 24 |
The following models were included in the merge:
|
| 25 |
* [jaspionjader/sof-3](https://huggingface.co/jaspionjader/sof-3)
|
| 26 |
* [jaspionjader/ek-6](https://huggingface.co/jaspionjader/ek-6)
|
| 27 |
-
* [jaspionjader/sof-
|
| 28 |
|
| 29 |
### Configuration
|
| 30 |
|
|
@@ -32,7 +32,7 @@ The following YAML configuration was used to produce this model:
|
|
| 32 |
|
| 33 |
```yaml
|
| 34 |
models:
|
| 35 |
-
- model: jaspionjader/sof-
|
| 36 |
- model: jaspionjader/sof-3
|
| 37 |
- model: jaspionjader/ek-6
|
| 38 |
merge_method: model_stock
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
- jaspionjader/sof-3
|
|
|
|
| 4 |
- jaspionjader/ek-6
|
| 5 |
+
- jaspionjader/sof-4
|
| 6 |
+
- jaspionjader/Kosmos-EVAA-Franken-stock-v43-8B
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mergekit
|
|
|
|
| 24 |
The following models were included in the merge:
|
| 25 |
* [jaspionjader/sof-3](https://huggingface.co/jaspionjader/sof-3)
|
| 26 |
* [jaspionjader/ek-6](https://huggingface.co/jaspionjader/ek-6)
|
| 27 |
+
* [jaspionjader/sof-4](https://huggingface.co/jaspionjader/sof-4)
|
| 28 |
|
| 29 |
### Configuration
|
| 30 |
|
|
|
|
| 32 |
|
| 33 |
```yaml
|
| 34 |
models:
|
| 35 |
+
- model: jaspionjader/sof-4
|
| 36 |
- model: jaspionjader/sof-3
|
| 37 |
- model: jaspionjader/ek-6
|
| 38 |
merge_method: model_stock
|
mergekit_config.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
models:
|
| 2 |
-
- model: jaspionjader/sof-
|
| 3 |
- model: jaspionjader/sof-3
|
| 4 |
- model: jaspionjader/ek-6
|
| 5 |
merge_method: model_stock
|
|
|
|
| 1 |
models:
|
| 2 |
+
- model: jaspionjader/sof-4
|
| 3 |
- model: jaspionjader/sof-3
|
| 4 |
- model: jaspionjader/ek-6
|
| 5 |
merge_method: model_stock
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4953586384
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4f8f15f0ea49369ceb7c7ac42a5e248dfb8897417d1dda27e03755d9a1cae39
|
| 3 |
size 4953586384
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999819336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e88131f500bcccae35363644c69f92f51265478658e6be42e8a44f3f41f722cc
|
| 3 |
size 4999819336
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915916144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2552bc0ee5226e29afaf11c003cc48789763e9ae2c352d9c6b3760960b261d86
|
| 3 |
size 4915916144
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1191234472
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91674a54d4996905ba03e7667e18a6d215461554b42e9b0234f24490a62e7118
|
| 3 |
size 1191234472
|