Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

stefanwebb
/
banking77-intent-classifier-mlx

Text Generation
MLX
Safetensors
English
qwen3
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use stefanwebb/banking77-intent-classifier-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use stefanwebb/banking77-intent-classifier-mlx with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("stefanwebb/banking77-intent-classifier-mlx")
    
    prompt = "Write a story about Einstein"
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )
    
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • LM Studio
  • Pi new

    How to use stefanwebb/banking77-intent-classifier-mlx with Pi:

    Start the MLX server
    # Install MLX LM:
    uv tool install mlx-lm
    # Start a local OpenAI-compatible server:
    mlx_lm.server --model "stefanwebb/banking77-intent-classifier-mlx"
    Configure the model in Pi
    # Install Pi:
    npm install -g @mariozechner/pi-coding-agent
    # Add to ~/.pi/agent/models.json:
    {
      "providers": {
        "mlx-lm": {
          "baseUrl": "http://localhost:8080/v1",
          "api": "openai-completions",
          "apiKey": "none",
          "models": [
            {
              "id": "stefanwebb/banking77-intent-classifier-mlx"
            }
          ]
        }
      }
    }
    Run Pi
    # Start Pi in your project directory:
    pi
  • MLX LM

    How to use stefanwebb/banking77-intent-classifier-mlx with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "stefanwebb/banking77-intent-classifier-mlx"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "stefanwebb/banking77-intent-classifier-mlx"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "stefanwebb/banking77-intent-classifier-mlx",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
banking77-intent-classifier-mlx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
stefanwebb's picture
stefanwebb
model files
09545d1 about 2 months ago
  • .gitattributes
    1.57 kB
    model files about 2 months ago
  • README.md
    81 Bytes
    model files about 2 months ago
  • chat_template.jinja
    2.63 kB
    model files about 2 months ago
  • config.json
    1.95 kB
    model files about 2 months ago
  • generation_config.json
    187 Bytes
    model files about 2 months ago
  • model.safetensors
    2.26 GB
    xet
    model files about 2 months ago
  • model.safetensors.index.json
    64 kB
    model files about 2 months ago
  • tokenizer.json
    11.4 MB
    xet
    model files about 2 months ago
  • tokenizer_config.json
    347 Bytes
    model files about 2 months ago