Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

kbosompem
/
datalevin-nlq-mlx

Text Generation
MLX
Safetensors
ONNX
Transformers.js
English
llama
conversational
Model card Files Files and versions
xet
Community

Instructions to use kbosompem/datalevin-nlq-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use kbosompem/datalevin-nlq-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("kbosompem/datalevin-nlq-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)
  • Transformers.js

    How to use kbosompem/datalevin-nlq-mlx with Transformers.js:

    // npm i @huggingface/transformers
    import { pipeline } from '@huggingface/transformers';
    
    // Allocate pipeline
    const pipe = await pipeline('text-generation', 'kbosompem/datalevin-nlq-mlx');
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • MLX LM

    How to use kbosompem/datalevin-nlq-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 "kbosompem/datalevin-nlq-mlx"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "kbosompem/datalevin-nlq-mlx"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "kbosompem/datalevin-nlq-mlx",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
datalevin-nlq-mlx
728 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
kbosompem's picture
kbosompem
Upload folder using huggingface_hub
cd1e731 verified 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    190 Bytes
    Upload folder using huggingface_hub 6 months ago
  • chat_template.jinja
    368 Bytes
    Upload folder using huggingface_hub 6 months ago
  • config.json
    929 Bytes
    Upload folder using huggingface_hub 6 months ago
  • generation_config.json
    132 Bytes
    Upload folder using huggingface_hub 6 months ago
  • merges.txt
    466 kB
    Upload folder using huggingface_hub 6 months ago
  • model.safetensors
    724 MB
    xet
    Upload folder using huggingface_hub 6 months ago
  • model.safetensors.index.json
    20.8 kB
    Upload folder using huggingface_hub 6 months ago
  • special_tokens_map.json
    655 Bytes
    Upload folder using huggingface_hub 6 months ago
  • tokenizer.json
    3.52 MB
    Upload folder using huggingface_hub 6 months ago
  • tokenizer_config.json
    3.4 kB
    Upload folder using huggingface_hub 6 months ago
  • vocab.json
    801 kB
    Upload folder using huggingface_hub 6 months ago