Text Generation
Transformers
Safetensors
qwen2
mergekit
Merge
conversational
text-generation-inference
Instructions to use Chickaboo/ChickaQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Chickaboo/ChickaQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Chickaboo/ChickaQ") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Chickaboo/ChickaQ") model = AutoModelForCausalLM.from_pretrained("Chickaboo/ChickaQ") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Chickaboo/ChickaQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Chickaboo/ChickaQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Chickaboo/ChickaQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Chickaboo/ChickaQ
- SGLang
How to use Chickaboo/ChickaQ 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 "Chickaboo/ChickaQ" \ --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": "Chickaboo/ChickaQ", "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 "Chickaboo/ChickaQ" \ --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": "Chickaboo/ChickaQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Chickaboo/ChickaQ with Docker Model Runner:
docker model run hf.co/Chickaboo/ChickaQ
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,9 @@ tags:
|
|
| 8 |
- merge
|
| 9 |
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
| 11 |
# mergedmodel
|
| 12 |
|
| 13 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
|
@@ -15,12 +18,12 @@ This is a merge of pre-trained language models created using [mergekit](https://
|
|
| 15 |
## Merge Details
|
| 16 |
### Merge Method
|
| 17 |
|
| 18 |
-
This model was merged using the [
|
| 19 |
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
-
* [
|
| 24 |
|
| 25 |
### Configuration
|
| 26 |
|
|
@@ -28,15 +31,16 @@ The following YAML configuration was used to produce this model:
|
|
| 28 |
|
| 29 |
```yaml
|
| 30 |
models:
|
| 31 |
-
- model: Qwen/Qwen1.5-0.5B-Chat
|
| 32 |
-
# no parameters necessary for base model
|
| 33 |
- model: vilm/Quyen-SE-v0.1
|
|
|
|
|
|
|
| 34 |
parameters:
|
| 35 |
-
density:
|
| 36 |
-
weight:
|
| 37 |
-
merge_method:
|
| 38 |
-
base_model:
|
| 39 |
parameters:
|
| 40 |
normalize: true
|
| 41 |
dtype: float16
|
| 42 |
-
|
|
|
|
|
|
| 8 |
- merge
|
| 9 |
|
| 10 |
---
|
| 11 |
+
# Models in the ChickaQ family
|
| 12 |
+
- **ChickaQ (0.6B)**
|
| 13 |
+
- **ChickaQ-Large (1.8B)**
|
| 14 |
# mergedmodel
|
| 15 |
|
| 16 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
|
|
|
| 18 |
## Merge Details
|
| 19 |
### Merge Method
|
| 20 |
|
| 21 |
+
This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge method using [vilm/Quyen-SE-v0.1](https://huggingface.co/vilm/Quyen-SE-v0.1) as a base.
|
| 22 |
|
| 23 |
### Models Merged
|
| 24 |
|
| 25 |
The following models were included in the merge:
|
| 26 |
+
* [Qwen/Qwen1.5-0.5B-Chat](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat)
|
| 27 |
|
| 28 |
### Configuration
|
| 29 |
|
|
|
|
| 31 |
|
| 32 |
```yaml
|
| 33 |
models:
|
|
|
|
|
|
|
| 34 |
- model: vilm/Quyen-SE-v0.1
|
| 35 |
+
# no parameters necessary for base model
|
| 36 |
+
- model: Qwen/Qwen1.5-0.5B-Chat
|
| 37 |
parameters:
|
| 38 |
+
density: 0.5
|
| 39 |
+
weight: 0.5
|
| 40 |
+
merge_method: ties
|
| 41 |
+
base_model: vilm/Quyen-SE-v0.1
|
| 42 |
parameters:
|
| 43 |
normalize: true
|
| 44 |
dtype: float16
|
| 45 |
+
|
| 46 |
+
```
|