How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "kechengcode/Qwen2-5B-Instruct-16Layers"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "kechengcode/Qwen2-5B-Instruct-16Layers",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/kechengcode/Qwen2-5B-Instruct-16Layers
Quick Links

merged

This is a merge of pre-trained language models created using mergekit.

Merge Details

Merge Method

This model was merged using the passthrough merge method.

Models Merged

The following models were included in the merge:

Configuration

The following YAML configuration was used to produce this model:

dtype: float16
merge_method: passthrough
slices:
- sources:
  - layer_range: [0, 6]
    model: Qwen/Qwen2-7B-Instruct
- sources:
  - layer_range: [18, 28]
    model: Qwen/Qwen2-7B-Instruct
Downloads last month
5
Safetensors
Model size
5B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kechengcode/Qwen2-5B-Instruct-16Layers

Base model

Qwen/Qwen2-7B
Finetuned
(132)
this model