Instructions to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF", dtype="auto") - llama-cpp-python
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF", filename="Falcon3-10B-Instruct-BehaviorTree-3-epochs.F16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
Use Docker
docker model run hf.co/Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
- SGLang
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF 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 "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with Ollama:
ollama run hf.co/Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
- Unsloth Studio new
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF to start chatting
- Docker Model Runner
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with Docker Model Runner:
docker model run hf.co/Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
- Lemonade
How to use Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Inventors-Hub/Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF:F16
Run and chat with the model
lemonade run user.Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF-F16
List all available models
lemonade list
Falcon3-10B-Instruct-BehaviorTree-3-epochs-GGUF
A GGUF-quantized variant of Falcon3-10B-Instruct-BehaviorTree-3epochs offering two quantization formats (f16 and q4_k_m) for ultra-lightweight inference on edge devices.
Model Overview
Purpose
Same functionality as the full-precision model: convert natural-language commands into safe, syntactically valid XML behavior trees for swarm-robotics.Base model
tiiuae/Falcon3-10B-Instruct+ LoRA (rank=16, α=16)Quantization formats
- f16 GGUF: half-precision weights
- q4_k_m GGUF: 4-bit kernel-wise quantization
Data
- Training dataset
Inventors-Hub/SwarmChat-BehaviorTree-Dataset(2 063 synthetic examples from OpenAI’s o1-mini)
Usage
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# Download the behavior-tree model
model_path = hf_hub_download(
repo_id="Inventors-Hub/SwarmChat-models",
repo_type="model",
filename="Falcon3-10B-Instruct-BehaviorTree-3epochs.Q4_K_M.gguf",
)
# Initialize the Llama model
llm = Llama(
model_path=model_path,
n_ctx=1024*4,
low_vram=True,
f16_kv=True,
use_mmap=True,
use_mlock=False,
)
prompt = """
SYSTEM:
<<SYS>>You are a helpful, respectful, and honest AI assistant. Your task is to generate well-structured XML code for behavior trees based on the provided instructions.<</SYS>>
INSTRUCTIONS:
It is CRITICAL to use only the following behaviors structured as a dictionary:
{
say: Action Node: Speak the provided message using text-to-speech if it hasn't been spoken before. Args: message (str): The message to be spoken. Returns: Always returns SUCCESS, indicating the action was executed.
flocking: Action Node: Adjust the agent's move vector by blending alignment and separation forces from nearby agents. Returns: Always returns SUCCESS, indicating the action was executed.
align_with_swarm: Action Node: Align the agent's move vector with the average movement of nearby agents. Returns: Always returns SUCCESS, indicating the action was executed.
is_obstacle_detected: Condition node: Determine if any obstacles are detected in the vicinity of the agent. Returns: SUCCESS if an obstacle is detected, FAILURE otherwise.
form_line: Action node: Direct the agent to form a line towards the center of the window. This function adjuststhe agent's position to align it with the center. Returns: Always returns SUCCESS,
}
to construct behavior tree in XML format to the following command, including in the behaviour tree a behaviour that is not in the provided dictionary can result in damage to the agents, and potentially humans, therefore you are not allowed to do so, AVOID AT ALL COSTS.
USER COMMAND:
generate behavior tree to "form a line". Take a step back and think deeply about the behavior you need for this command. Take another step back and think of the xml structure and the behavior you used.
The output MUST follow this XML structure exactly, including:
- A root element with <root BTCPP_format and main_tree_to_execute attributes.
- A <BehaviorTree> element with an inner structure of Sequences, Fallback, Conditions, and Actions.
- A <TreeNodesModel> section listing all node models.
- No additional text or commentary outside the XML.
Output only the XML behavior tree without extra text.
OUTPUT:
"""
output = llm(
prompt,
temperature=0,
max_tokens=1024,
top_p=0.95,
top_k=50,
repeat_penalty=1.1
)
response = output.get("choices", [{}])[0].get("text", "").strip()
print(response)
- Downloads last month
- -
4-bit
16-bit