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
- 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
Upload folder using huggingface_hub
Browse files- README.md +4 -5
- mergekit_config.yml +1 -1
- model-00001-of-00001.safetensors +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
- Qwen/Qwen1.5-0.5B
|
| 4 |
- vilm/Quyen-SE-v0.1
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
@@ -11,8 +11,7 @@ tags:
|
|
| 11 |
# mergedmodel
|
| 12 |
|
| 13 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 14 |
-
|
| 15 |
-
ChickaQ is about 1B parameters.
|
| 16 |
## Merge Details
|
| 17 |
### Merge Method
|
| 18 |
|
|
@@ -21,7 +20,7 @@ This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge m
|
|
| 21 |
### Models Merged
|
| 22 |
|
| 23 |
The following models were included in the merge:
|
| 24 |
-
* [Qwen/Qwen1.5-0.5B](https://huggingface.co/Qwen/Qwen1.5-0.5B)
|
| 25 |
|
| 26 |
### Configuration
|
| 27 |
|
|
@@ -31,7 +30,7 @@ The following YAML configuration was used to produce this model:
|
|
| 31 |
models:
|
| 32 |
- model: vilm/Quyen-SE-v0.1
|
| 33 |
# no parameters necessary for base model
|
| 34 |
-
- model: Qwen/Qwen1.5-0.5B
|
| 35 |
parameters:
|
| 36 |
density: 0.5
|
| 37 |
weight: 0.5
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- vilm/Quyen-SE-v0.1
|
| 4 |
+
- Qwen/Qwen1.5-0.5B-Chat
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mergekit
|
|
|
|
| 11 |
# mergedmodel
|
| 12 |
|
| 13 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 14 |
+
|
|
|
|
| 15 |
## Merge Details
|
| 16 |
### Merge Method
|
| 17 |
|
|
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
+
* [Qwen/Qwen1.5-0.5B-Chat](https://huggingface.co/Qwen/Qwen1.5-0.5B-Chat)
|
| 24 |
|
| 25 |
### Configuration
|
| 26 |
|
|
|
|
| 30 |
models:
|
| 31 |
- model: vilm/Quyen-SE-v0.1
|
| 32 |
# no parameters necessary for base model
|
| 33 |
+
- model: Qwen/Qwen1.5-0.5B-Chat
|
| 34 |
parameters:
|
| 35 |
density: 0.5
|
| 36 |
weight: 0.5
|
mergekit_config.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
models:
|
| 2 |
- model: vilm/Quyen-SE-v0.1
|
| 3 |
# no parameters necessary for base model
|
| 4 |
-
- model: Qwen/Qwen1.5-0.5B
|
| 5 |
parameters:
|
| 6 |
density: 0.5
|
| 7 |
weight: 0.5
|
|
|
|
| 1 |
models:
|
| 2 |
- model: vilm/Quyen-SE-v0.1
|
| 3 |
# no parameters necessary for base model
|
| 4 |
+
- model: Qwen/Qwen1.5-0.5B-Chat
|
| 5 |
parameters:
|
| 6 |
density: 0.5
|
| 7 |
weight: 0.5
|
model-00001-of-00001.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1239173056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eece92273f353f4b9563464043b2653ab2ef2f7222ee6cff0a3165c1aefbc95a
|
| 3 |
size 1239173056
|