Text Generation
Transformers
Safetensors
English
qwen2
code
qwen-coder
cybersecurity
devops
conversational
text-generation-inference
Run this model with HF Jobs
Run DeepHat/DeepHat-V1-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/DeepHat/DeepHat-V1-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/DeepHat/DeepHat-V1-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/DeepHat/DeepHat-V1-7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/DeepHat/DeepHat-V1-7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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]:])) - 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
Update README.md
Browse files10 unmodified lines1112131415161718192021222324252627282911 unmodified lines41424344454647484950515253545556575859606162636465664 unmodified lines71727374757677787980818283848510 unmodified lines- finetune---# Our latest model is live in our Web App, and on Kindo.ai!This is currently a preview release that is subject to change.Access at: https://www.whiterabbitneo.com/# Our Discord ServerJoin us at: https://discord.gg/8Ynkrcbk92 (Updated on Dec 29th. Now permanent link to join)# Apache-2.0 + WhiteRabbitNeo Extended Version# WhiteRabbitNeo Extension to Apache-2.0 Licence: Usage Restrictions```You agree not to use the Model or Derivatives of the Model:11 unmodified lines- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories.```# Topics Covered:```- Open Ports: Identifying open ports is crucial as they can be entry points for attackers. Common ports to check include HTTP (80, 443), FTP (21), SSH (22), and SMB (445).- Outdated Software or Services: Systems running outdated software or services are often vulnerable to exploits. This includes web servers, database servers, and any third-party software.- Default Credentials: Many systems and services are installed with default usernames and passwords, which are well-known and can be easily exploited.- Misconfigurations: Incorrectly configured services, permissions, and security settings can introduce vulnerabilities.- Injection Flaws: SQL injection, command injection, and cross-site scripting (XSS) are common issues in web applications.- Unencrypted Services: Services that do not use encryption (like HTTP instead of HTTPS) can expose sensitive data.- Known Software Vulnerabilities: Checking for known vulnerabilities in software using databases like the National Vulnerability Database (NVD) or tools like Nessus or OpenVAS.- Cross-Site Request Forgery (CSRF): This is where unauthorized commands are transmitted from a user that the web application trusts.- Insecure Direct Object References: This occurs when an application provides direct access to objects based on user-supplied input.- Security Misconfigurations in Web Servers/Applications: This includes issues like insecure HTTP headers or verbose error messages that reveal too much information.- Broken Authentication and Session Management: This can allow attackers to compromise passwords, keys, or session tokens, or to exploit other implementation flaws to assume other users' identities.- Sensitive Data Exposure: Includes vulnerabilities that expose sensitive data, such as credit card numbers, health records, or personal information.- API Vulnerabilities: In modern web applications, APIs are often used and can have vulnerabilities like insecure endpoints or data leakage.- Denial of Service (DoS) Vulnerabilities: Identifying services that are vulnerable to DoS attacks, which can make the resource unavailable to legitimate users.- Buffer Overflows: Common in older software, these vulnerabilities can allow an attacker to crash the system or execute arbitrary code.- More ..```# Terms of Use4 unmodified linesYour use of the AI model is at your own risk and discretion, and you will be solely responsible for any damage to computer systems or loss of data that results from the use of the AI model.This disclaimer constitutes part of the agreement between you and the creators of the AI model regarding your use of the model, superseding any prior agreements between you and the creators regarding your use of this AI model.# WhiteRabbitNeo<br><br>WhiteRabbitNeo is a model series that can be used for offensive and defensive cybersecurity.Our models are now getting released as a public preview of its capabilities, and also to assess the societal impact of such an AI.10 unmodified lines11121314151617181920212223242526272829303132333411 unmodified lines4647484950514 unmodified lines56575810 unmodified lines- finetune---<br># WhiteRabbitNeoWhiteRabbitNeo is a model series that can be used for offensive and defensive cybersecurity. Access at [whiterabbitneo.com](https://www.whiterabbitneo.com/) or go to [Kindo.ai](https://www.kindo.ai/) to create agents.# CommunityJoin us on [Discord](https://discord.gg/8Ynkrcbk92)# LicenseApache-2.0 + WhiteRabbitNeo Extended Version## WhiteRabbitNeo Extension to Apache-2.0 Licence: Usage Restrictions```You agree not to use the Model or Derivatives of the Model:11 unmodified lines- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories.```# Terms of Use4 unmodified linesYour use of the AI model is at your own risk and discretion, and you will be solely responsible for any damage to computer systems or loss of data that results from the use of the AI model.This disclaimer constitutes part of the agreement between you and the creators of the AI model regarding your use of the model, superseding any prior agreements between you and the creators regarding your use of this AI model.
README.md+12-39