Text Generation
Transformers
Safetensors
English
qwen2
code
qwen-coder
cybersecurity
devops
conversational
text-generation-inference
Instructions to use DeepHat/DeepHat-V1-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepHat/DeepHat-V1-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DeepHat/DeepHat-V1-7B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DeepHat/DeepHat-V1-7B") model = AutoModelForCausalLM.from_pretrained("DeepHat/DeepHat-V1-7B", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DeepHat/DeepHat-V1-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DeepHat/DeepHat-V1-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": "DeepHat/DeepHat-V1-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DeepHat/DeepHat-V1-7B
- SGLang
How to use DeepHat/DeepHat-V1-7B 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 "DeepHat/DeepHat-V1-7B" \ --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": "DeepHat/DeepHat-V1-7B", "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 "DeepHat/DeepHat-V1-7B" \ --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": "DeepHat/DeepHat-V1-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DeepHat/DeepHat-V1-7B with Docker Model Runner:
docker model run hf.co/DeepHat/DeepHat-V1-7B
Commit History
-
Create chat_template.jinja
Verified signatureUpdate our chat_template to better conform to the model expects tools to be formatted361a5ce -
Update tokenizer-config.json to match 32B
Verified signatureUpdating the `tokenizer-config.json` to match the 32B tokenizer-config.json and ensure we pull the chat-template from the external file.8c8527c
-
Update README.md
Verified signaturec3b0446
-
Update README.md
Verified signaturee1b9abf -
Update deephat_grey_logo.svg (#4)
Verified signature- Update deephat_grey_logo.svg (2204a879165d2aba0ee570c28c937aada072c758) Co-authored-by: H M <aseiken@users.noreply.huggingface.co>663ec98 -
Update README.md
Verified signature5a365a6 -
Update README.md
Verified signature0a3c372 -
Rename deephat-#0b0f19.svg to deephat_grey_logo.svg
Verified signaturec0a6705 -
Update README.md
Verified signaturec16612c -
Update README.md
Verified signature983ea91 -
Update README.md
Verified signaturee51b217 -
Upload deephat-#0b0f19.svg
Verified signatureGrey Deep Hat Logoe19d2f5
-
Update tokenizer_config.json
Verified signature92758d3
-
Update README.md
Verified signature41b0ec6 -
Upload deephat_inline_logo.svg
Verified signature4380f3a -
Update tokenizer_config.json
Verified signatureChange System Prompt to be DeepHat instead of WhiteRabbitNeo.1477106 -
Update README.md
Verified signature3d0a4aa
-
Uploading instruct tokenizer with chat_template: configs/templates/chat_template.jin (W&B run: dpo_7b_lr3e-5_ga8_ep3)
Verified signature7665282 -
Uploading model from run: dpo_7b_lr3e-5_ga8_ep3
Verified signatureb20ebb5
-
Update README.md
Verified signature836d062 -
Update README.md
Verified signature48b2b6b -
Update README.md
Verified signature928493c
-
initial commit
51cbcbb