Add files using upload-large-folder tool 9f93a09 verified
Sebastian Aldrin commited on
How to use SebastianAldrin/Nex-N2-mini-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SebastianAldrin/Nex-N2-mini-GGUF", filename="Nex-N2-mini-IQ3_XXS.gguf", )
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)How to use SebastianAldrin/Nex-N2-mini-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS # Run inference directly in the terminal: llama cli -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS # Run inference directly in the terminal: llama cli -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
# 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 SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS # Run inference directly in the terminal: ./llama-cli -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
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 SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS # Run inference directly in the terminal: ./build/bin/llama-cli -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
docker model run hf.co/SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
How to use SebastianAldrin/Nex-N2-mini-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "SebastianAldrin/Nex-N2-mini-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "SebastianAldrin/Nex-N2-mini-GGUF",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
How to use SebastianAldrin/Nex-N2-mini-GGUF with Ollama:
ollama run hf.co/SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
How to use SebastianAldrin/Nex-N2-mini-GGUF with Unsloth Studio:
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 SebastianAldrin/Nex-N2-mini-GGUF to start chatting
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 SebastianAldrin/Nex-N2-mini-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SebastianAldrin/Nex-N2-mini-GGUF to start chatting
How to use SebastianAldrin/Nex-N2-mini-GGUF with Pi:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
"providers": {
"llama-cpp": {
"baseUrl": "http://localhost:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS"
}
]
}
}
}# Start Pi in your project directory: pi
How to use SebastianAldrin/Nex-N2-mini-GGUF with Hermes Agent:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
# 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:8080/v1 hermes config set model.default SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
hermes
How to use SebastianAldrin/Nex-N2-mini-GGUF with OpenClaw:
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
# 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:8080/v1 \ --custom-model-id "SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
openclaw agent --local --agent main --message "Hello from Hugging Face"
How to use SebastianAldrin/Nex-N2-mini-GGUF with Docker Model Runner:
docker model run hf.co/SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
How to use SebastianAldrin/Nex-N2-mini-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SebastianAldrin/Nex-N2-mini-GGUF:IQ3_XXS
lemonade run user.Nex-N2-mini-GGUF-IQ3_XXS
lemonade list