Text Generation
Transformers
Safetensors
qwen2
mergekit
Merge
conversational
text-generation-inference
Instructions to use rootxhacker/Apollo-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rootxhacker/Apollo-14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rootxhacker/Apollo-14B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rootxhacker/Apollo-14B") model = AutoModelForCausalLM.from_pretrained("rootxhacker/Apollo-14B") 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 rootxhacker/Apollo-14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rootxhacker/Apollo-14B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rootxhacker/Apollo-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rootxhacker/Apollo-14B
- SGLang
How to use rootxhacker/Apollo-14B 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 "rootxhacker/Apollo-14B" \ --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": "rootxhacker/Apollo-14B", "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 "rootxhacker/Apollo-14B" \ --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": "rootxhacker/Apollo-14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rootxhacker/Apollo-14B with Docker Model Runner:
docker model run hf.co/rootxhacker/Apollo-14B
Improve language tag
Browse filesHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.
README.md
CHANGED
|
@@ -1,61 +1,75 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model:
|
| 3 |
-
- SicariusSicariiStuff/Impish_QWEN_14B-1M
|
| 4 |
-
- Qwen/Qwen2.5-14B-Instruct
|
| 5 |
-
- sometimesanotion/LamarckInfusion-14B-v1
|
| 6 |
-
- Qwen/Qwen2.5-Coder-14B
|
| 7 |
-
- suayptalha/Lamarckvergence-14B
|
| 8 |
-
- huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2
|
| 9 |
-
- Qwen/Qwen2.5-14B
|
| 10 |
-
- tanliboy/lambda-qwen2.5-14b-dpo-test
|
| 11 |
-
- deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
|
| 12 |
-
library_name: transformers
|
| 13 |
-
tags:
|
| 14 |
-
- mergekit
|
| 15 |
-
- merge
|
| 16 |
-
license: mit
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 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 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- SicariusSicariiStuff/Impish_QWEN_14B-1M
|
| 4 |
+
- Qwen/Qwen2.5-14B-Instruct
|
| 5 |
+
- sometimesanotion/LamarckInfusion-14B-v1
|
| 6 |
+
- Qwen/Qwen2.5-Coder-14B
|
| 7 |
+
- suayptalha/Lamarckvergence-14B
|
| 8 |
+
- huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2
|
| 9 |
+
- Qwen/Qwen2.5-14B
|
| 10 |
+
- tanliboy/lambda-qwen2.5-14b-dpo-test
|
| 11 |
+
- deepseek-ai/DeepSeek-R1-Distill-Qwen-14B
|
| 12 |
+
library_name: transformers
|
| 13 |
+
tags:
|
| 14 |
+
- mergekit
|
| 15 |
+
- merge
|
| 16 |
+
license: mit
|
| 17 |
+
language:
|
| 18 |
+
- zho
|
| 19 |
+
- eng
|
| 20 |
+
- fra
|
| 21 |
+
- spa
|
| 22 |
+
- por
|
| 23 |
+
- deu
|
| 24 |
+
- ita
|
| 25 |
+
- rus
|
| 26 |
+
- jpn
|
| 27 |
+
- kor
|
| 28 |
+
- vie
|
| 29 |
+
- tha
|
| 30 |
+
- ara
|
| 31 |
+
---
|
| 32 |
+
# merge
|
| 33 |
+
|
| 34 |
+
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 35 |
+
|
| 36 |
+
## Merge Details
|
| 37 |
+
### Merge Method
|
| 38 |
+
|
| 39 |
+
This model was merged using the [Model Stock](https://arxiv.org/abs/2403.19522) merge method using [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) as a base.
|
| 40 |
+
|
| 41 |
+
### Models Merged
|
| 42 |
+
|
| 43 |
+
The following models were included in the merge:
|
| 44 |
+
* [SicariusSicariiStuff/Impish_QWEN_14B-1M](https://huggingface.co/SicariusSicariiStuff/Impish_QWEN_14B-1M)
|
| 45 |
+
* [sometimesanotion/LamarckInfusion-14B-v1](https://huggingface.co/sometimesanotion/LamarckInfusion-14B-v1)
|
| 46 |
+
* [Qwen/Qwen2.5-Coder-14B](https://huggingface.co/Qwen/Qwen2.5-Coder-14B)
|
| 47 |
+
* [suayptalha/Lamarckvergence-14B](https://huggingface.co/suayptalha/Lamarckvergence-14B)
|
| 48 |
+
* [huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2](https://huggingface.co/huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2)
|
| 49 |
+
* [Qwen/Qwen2.5-14B](https://huggingface.co/Qwen/Qwen2.5-14B)
|
| 50 |
+
* [tanliboy/lambda-qwen2.5-14b-dpo-test](https://huggingface.co/tanliboy/lambda-qwen2.5-14b-dpo-test)
|
| 51 |
+
* [deepseek-ai/DeepSeek-R1-Distill-Qwen-14B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B)
|
| 52 |
+
|
| 53 |
+
### Configuration
|
| 54 |
+
|
| 55 |
+
The following YAML configuration was used to produce this model:
|
| 56 |
+
|
| 57 |
+
```yaml
|
| 58 |
+
models:
|
| 59 |
+
- model: deepseek-ai/DeepSeek-R1-Distill-Qwen-14B #logic
|
| 60 |
+
- model: huihui-ai/DeepSeek-R1-Distill-Qwen-14B-abliterated-v2
|
| 61 |
+
- model: Qwen/Qwen2.5-14B #text generation
|
| 62 |
+
- model: Qwen/Qwen2.5-14B-Instruct #chat assistant
|
| 63 |
+
- model: Qwen/Qwen2.5-Coder-14B #coding
|
| 64 |
+
- model: sometimesanotion/LamarckInfusion-14B-v1
|
| 65 |
+
- model: suayptalha/Lamarckvergence-14B
|
| 66 |
+
- model: tanliboy/lambda-qwen2.5-14b-dpo-test
|
| 67 |
+
- model: SicariusSicariiStuff/Impish_QWEN_14B-1M
|
| 68 |
+
|
| 69 |
+
merge_method: model_stock
|
| 70 |
+
base_model: Qwen/Qwen2.5-14B-Instruct
|
| 71 |
+
normalize: true
|
| 72 |
+
int8_mask: true
|
| 73 |
+
dtype: bfloat16
|
| 74 |
+
|
| 75 |
```
|