Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
text-generation-inference
Instructions to use Jolly-Q/70B_SOG_unstructed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jolly-Q/70B_SOG_unstructed with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jolly-Q/70B_SOG_unstructed") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jolly-Q/70B_SOG_unstructed") model = AutoModelForCausalLM.from_pretrained("Jolly-Q/70B_SOG_unstructed") 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 Jolly-Q/70B_SOG_unstructed with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jolly-Q/70B_SOG_unstructed" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jolly-Q/70B_SOG_unstructed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jolly-Q/70B_SOG_unstructed
- SGLang
How to use Jolly-Q/70B_SOG_unstructed 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 "Jolly-Q/70B_SOG_unstructed" \ --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": "Jolly-Q/70B_SOG_unstructed", "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 "Jolly-Q/70B_SOG_unstructed" \ --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": "Jolly-Q/70B_SOG_unstructed", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jolly-Q/70B_SOG_unstructed with Docker Model Runner:
docker model run hf.co/Jolly-Q/70B_SOG_unstructed
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,67 +1,69 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- schonsense/SOG_10k_70B
|
| 4 |
-
- meta-llama/Llama-3.1-70B
|
| 5 |
-
- meta-llama/Llama-3.3-70B-Instruct
|
| 6 |
-
- schonsense/70B_unstructWR
|
| 7 |
-
library_name: transformers
|
| 8 |
-
tags:
|
| 9 |
-
- mergekit
|
| 10 |
-
- merge
|
| 11 |
-
|
| 12 |
-
---
|
| 13 |
-
# 70B_SOG_unstructed
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
* [schonsense/
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- schonsense/SOG_10k_70B
|
| 4 |
+
- meta-llama/Llama-3.1-70B
|
| 5 |
+
- meta-llama/Llama-3.3-70B-Instruct
|
| 6 |
+
- schonsense/70B_unstructWR
|
| 7 |
+
library_name: transformers
|
| 8 |
+
tags:
|
| 9 |
+
- mergekit
|
| 10 |
+
- merge
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
# 70B_SOG_unstructed
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
|
| 17 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 18 |
+
|
| 19 |
+
## Merge Details
|
| 20 |
+
### Merge Method
|
| 21 |
+
|
| 22 |
+
This model was merged using the [DELLA](https://arxiv.org/abs/2406.11617) merge method using [meta-llama/Llama-3.3-70B-Instruct](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct) as a base.
|
| 23 |
+
|
| 24 |
+
### Models Merged
|
| 25 |
+
|
| 26 |
+
The following models were included in the merge:
|
| 27 |
+
* [schonsense/SOG_10k_70B](https://huggingface.co/schonsense/SOG_10k_70B)
|
| 28 |
+
* [meta-llama/Llama-3.1-70B](https://huggingface.co/meta-llama/Llama-3.1-70B)
|
| 29 |
+
* [schonsense/70B_unstructWR](https://huggingface.co/schonsense/70B_unstructWR)
|
| 30 |
+
|
| 31 |
+
### Configuration
|
| 32 |
+
|
| 33 |
+
The following YAML configuration was used to produce this model:
|
| 34 |
+
|
| 35 |
+
```yaml
|
| 36 |
+
models:
|
| 37 |
+
|
| 38 |
+
- model: schonsense/70B_unstructWR
|
| 39 |
+
parameters:
|
| 40 |
+
density: 0.7
|
| 41 |
+
epsilon: 0.2
|
| 42 |
+
weight: 0.4
|
| 43 |
+
|
| 44 |
+
- model: schonsense/SOG_10k_70B
|
| 45 |
+
parameters:
|
| 46 |
+
density: 0.7
|
| 47 |
+
epsilon: 0.2
|
| 48 |
+
weight: 0.5
|
| 49 |
+
|
| 50 |
+
- model: meta-llama/Llama-3.1-70B
|
| 51 |
+
parameters:
|
| 52 |
+
density: 0.8
|
| 53 |
+
epsilon: 0.1
|
| 54 |
+
weight: 0.1
|
| 55 |
+
|
| 56 |
+
- model: meta-llama/Llama-3.3-70B-Instruct
|
| 57 |
+
merge_method: della
|
| 58 |
+
base_model: meta-llama/Llama-3.3-70B-Instruct
|
| 59 |
+
tokenizer_source: meta-llama/Llama-3.3-70B-Instruct
|
| 60 |
+
parameters:
|
| 61 |
+
normalize: false
|
| 62 |
+
int8_mask: false
|
| 63 |
+
lambda: 1.0
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
dtype: float32
|
| 67 |
+
|
| 68 |
+
out_dtype: bfloat16
|
| 69 |
+
```
|