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

image/png

Hemlock-Coder-7B

Training Configuration

Parameter Value
Training Mode SFT
Base Model nbeerbower/Hemlock-Qwen2.5-Coder-7B
Learning Rate 0.0001
Epochs 2
Batch Size 1
Gradient Accumulation 16
Effective Batch Size 16
Max Sequence Length 2048
Optimizer paged_adamw_8bit
LR Scheduler cosine
Warmup Ratio 0.05
Weight Decay 0.01
Max Grad Norm 0.25
Seed 42
LoRA Rank (r) 128
LoRA Alpha 128
LoRA Dropout 0.05
Target Modules up_proj, down_proj, gate_proj, k_proj, q_proj, v_proj, o_proj
Quantization 4-bit (NF4)
GPU NVIDIA RTX A6000

Trained with Merlina

Merlina on GitHub

Downloads last month
2
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for hemlang/Hemlock-Coder-7B

Base model

Qwen/Qwen2.5-7B
Finetuned
(1)
this model
Quantizations
3 models

Dataset used to train hemlang/Hemlock-Coder-7B