Text Generation
Transformers
Safetensors
GGUF
PEFT
English
falcon_h1
falcon-h1
qlora
cyber-security
conversational
Instructions to use sourcepirate/falcon-h1-tiny-cyber with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sourcepirate/falcon-h1-tiny-cyber with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sourcepirate/falcon-h1-tiny-cyber") 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("sourcepirate/falcon-h1-tiny-cyber") model = AutoModelForCausalLM.from_pretrained("sourcepirate/falcon-h1-tiny-cyber", 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]:])) - PEFT
How to use sourcepirate/falcon-h1-tiny-cyber with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sourcepirate/falcon-h1-tiny-cyber with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0 # Run inference directly in the terminal: llama cli -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0 # Run inference directly in the terminal: llama cli -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Use Docker
docker model run hf.co/sourcepirate/falcon-h1-tiny-cyber:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use sourcepirate/falcon-h1-tiny-cyber with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sourcepirate/falcon-h1-tiny-cyber" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sourcepirate/falcon-h1-tiny-cyber", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sourcepirate/falcon-h1-tiny-cyber:Q8_0
- SGLang
How to use sourcepirate/falcon-h1-tiny-cyber 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 "sourcepirate/falcon-h1-tiny-cyber" \ --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": "sourcepirate/falcon-h1-tiny-cyber", "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 "sourcepirate/falcon-h1-tiny-cyber" \ --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": "sourcepirate/falcon-h1-tiny-cyber", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use sourcepirate/falcon-h1-tiny-cyber with Ollama:
ollama run hf.co/sourcepirate/falcon-h1-tiny-cyber:Q8_0
- Unsloth Desktop
- Pi
How to use sourcepirate/falcon-h1-tiny-cyber with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sourcepirate/falcon-h1-tiny-cyber:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sourcepirate/falcon-h1-tiny-cyber with Docker Model Runner:
docker model run hf.co/sourcepirate/falcon-h1-tiny-cyber:Q8_0
- Lemonade
How to use sourcepirate/falcon-h1-tiny-cyber with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sourcepirate/falcon-h1-tiny-cyber:Q8_0
Run and chat with the model
lemonade run user.falcon-h1-tiny-cyber-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use sourcepirate/falcon-h1-tiny-cyber with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default sourcepirate/falcon-h1-tiny-cyber:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sourcepirate/falcon-h1-tiny-cyber with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sourcepirate/falcon-h1-tiny-cyber:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "sourcepirate/falcon-h1-tiny-cyber:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download training_config.json from sourcepirate/falcon-h1-tiny-cyber: direct link, hf CLI and curl.
- Browser
- Download file 3.51 kB
-
https://huggingface.co/sourcepirate/falcon-h1-tiny-cyber/resolve/main/training_config.json
- Command line
-
hf download hf://sourcepirate/falcon-h1-tiny-cyber/training_config.json
-
curl -L -o training_config.json https://huggingface.co/sourcepirate/falcon-h1-tiny-cyber/resolve/main/training_config.json
3.51 kB
| { | |
| "model": { | |
| "id": "tiiuae/Falcon-H1-Tiny-R-90M", | |
| "dtype": "auto", | |
| "attn": "sdpa", | |
| "quant": "4bit", | |
| "bnb_skip_modules": [ | |
| "out_proj", | |
| "lm_head" | |
| ] | |
| }, | |
| "data": { | |
| "sources": [ | |
| { | |
| "name": "redteam", | |
| "repo": "WNT3D/Ultimate-Offensive-Red-Team", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": "default/train/0000.parquet", | |
| "revision": "refs/convert/parquet", | |
| "cap": 20000 | |
| }, | |
| { | |
| "name": "kali", | |
| "repo": "suryanshp1/kali-linux-pentesting-data", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": null, | |
| "revision": null, | |
| "cap": 343 | |
| }, | |
| { | |
| "name": "kimi", | |
| "repo": "echel0nn1881/kimi-cyber-reasoning", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": null, | |
| "revision": null, | |
| "cap": 997 | |
| }, | |
| { | |
| "name": "cti", | |
| "repo": "reloading0101/threat-intelligence-dataset", | |
| "splits": [ | |
| "train", | |
| "validation" | |
| ], | |
| "subset": "default", | |
| "parquet": null, | |
| "revision": null, | |
| "cap": 6000 | |
| }, | |
| { | |
| "name": "exploitdb", | |
| "repo": "Waiper/ExploitDB_DataSet", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": "datasets/exploitdb_dataset.parquet", | |
| "revision": null, | |
| "cap": 8000 | |
| }, | |
| { | |
| "name": "linuxcmd", | |
| "repo": "Romit2004/LinuxCommands", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": null, | |
| "revision": null, | |
| "cap": 6000 | |
| }, | |
| { | |
| "name": "debian", | |
| "repo": "2etatg/Debian_Hacking_Networking", | |
| "splits": [ | |
| "train" | |
| ], | |
| "subset": null, | |
| "parquet": null, | |
| "revision": null, | |
| "cap": 965 | |
| } | |
| ], | |
| "output_dir": "data/processed", | |
| "max_len": 1024, | |
| "eval_max_len": 512, | |
| "eval_size": 300, | |
| "seed": 42 | |
| }, | |
| "lora": { | |
| "r": 8, | |
| "alpha": 16, | |
| "dropout": 0.05, | |
| "target_modules": [ | |
| "q_proj", | |
| "k_proj", | |
| "v_proj", | |
| "o_proj", | |
| "in_proj", | |
| "gate_proj", | |
| "up_proj", | |
| "down_proj" | |
| ] | |
| }, | |
| "train": { | |
| "output_dir": "outputs/falcon-h1-tiny-cyber", | |
| "micro_batch": 1, | |
| "grad_accum": 8, | |
| "epochs": 1, | |
| "max_steps": 100, | |
| "lr": 0.0002, | |
| "warmup_ratio": 0.03, | |
| "max_grad_norm": 1.0, | |
| "optim": "paged_adamw_8bit", | |
| "gradient_checkpointing": true, | |
| "logging_steps": 10, | |
| "save_steps": 20, | |
| "eval_steps": 20, | |
| "save_total_limit": 2, | |
| "report_to": [], | |
| "num_workers": 2, | |
| "seed": 42, | |
| "resume": true, | |
| "generation_gate": true, | |
| "gate_prompts": [ | |
| "Write a tcpdump command for DNS only", | |
| "Explain how SQL injection works.", | |
| "List three Linux commands to inspect open ports." | |
| ], | |
| "gate_max_new_tokens": 48 | |
| }, | |
| "export": { | |
| "merged_dir": "outputs/falcon-h1-tiny-merged", | |
| "gguf_dir": "outputs/gguf-tiny", | |
| "quant": "Q8_0", | |
| "llama_cpp_dir": "vendor/llama.cpp", | |
| "llama_cpp_rev": null, | |
| "hf_repo": "sourcepirate/falcon-h1-tiny-cyber" | |
| }, | |
| "wandb": { | |
| "enabled": "auto", | |
| "project": "falcon-h1-cyber", | |
| "entity": null, | |
| "run_name": null, | |
| "tags": [ | |
| "qlora", | |
| "falcon-h1-tiny", | |
| "cyber" | |
| ], | |
| "mode": null | |
| } | |
| } | |