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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Dibachain
/
Diba-mini

Text Generation
Transformers
Safetensors
GGUF
Persian
English
diba
persian
farsi
iran
iranian
llm
small-language-model
chat
chatbot
assistant
conversational
llama.cpp
offline
cpu
edge
dibachain
custom_code
Model card Files Files and versions
xet
Community

Instructions to use Dibachain/Diba-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Dibachain/Diba-mini with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Dibachain/Diba-mini", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("Dibachain/Diba-mini", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Dibachain/Diba-mini with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Dibachain/Diba-mini"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Dibachain/Diba-mini",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/Dibachain/Diba-mini
  • SGLang

    How to use Dibachain/Diba-mini 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 "Dibachain/Diba-mini" \
        --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": "Dibachain/Diba-mini",
    		"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 "Dibachain/Diba-mini" \
            --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": "Dibachain/Diba-mini",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Dibachain/Diba-mini with Docker Model Runner:

    docker model run hf.co/Dibachain/Diba-mini
Diba-mini
3.78 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
DibaAi's picture
DibaAi
Release
ec4b179 22 days ago
  • assets
    Release 22 days ago
  • .gitattributes
    1.57 kB
    Release 22 days ago
  • LICENSE
    11.4 kB
    Release 22 days ago
  • NOTICE
    717 Bytes
    Release 22 days ago
  • README.md
    9.77 kB
    Release 22 days ago
  • chat_template.jinja
    7.76 kB
    Release 22 days ago
  • config.json
    1.91 kB
    Release 22 days ago
  • configuration_diba.py
    549 Bytes
    Release 22 days ago
  • generation_config.json
    164 Bytes
    Release 22 days ago
  • model-00001-of-00002.safetensors
    2 GB
    xet
    Release 22 days ago
  • model-00002-of-00002.safetensors
    1.76 GB
    xet
    Release 22 days ago
  • model.safetensors.index.json
    26 kB
    Release 22 days ago
  • modeling_diba.py
    399 Bytes
    Release 22 days ago
  • tokenizer.json
    20 MB
    xet
    Release 22 days ago
  • tokenizer_config.json
    1.09 kB
    Release 22 days ago