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

darkps
/
darkit-v2.5-transformers

Text Generation
Transformers
Safetensors
multilingual
darkit-v2.5
open-source
programming
reasoning
fine-tuning
customizable
conversational
Model card Files Files and versions
xet
Community

Instructions to use darkps/darkit-v2.5-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use darkps/darkit-v2.5-transformers with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="darkps/darkit-v2.5-transformers")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import darkit-v2.5
    model = darkit-v2.5.from_pretrained("darkps/darkit-v2.5-transformers", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use darkps/darkit-v2.5-transformers with vLLM:

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

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

    How to use darkps/darkit-v2.5-transformers with Docker Model Runner:

    docker model run hf.co/darkps/darkit-v2.5-transformers
darkit-v2.5-transformers
29.6 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
darkps's picture
darkps
Upload config.json
c2e64f9 verified 2 days ago
  • README.md
    4.06 kB
    Upload 2 files 3 days ago
  • added_tokens.json
    707 Bytes
    Full model DarkIT 3 days ago
  • chat_template.jinja
    4.17 kB
    Full model DarkIT 3 days ago
  • config.json
    38 Bytes
    Upload config.json 2 days ago
  • generation_config.json
    211 Bytes
    Full model DarkIT 3 days ago
  • merges.txt
    1.67 MB
    Full model DarkIT 3 days ago
  • model-00001-of-00006.safetensors
    4.98 GB
    xet
    Full model DarkIT 3 days ago
  • model-00002-of-00006.safetensors
    4.98 GB
    xet
    Full model DarkIT 3 days ago
  • model-00003-of-00006.safetensors
    4.93 GB
    xet
    Full model DarkIT 3 days ago
  • model-00004-of-00006.safetensors
    4.98 GB
    xet
    Full model DarkIT 3 days ago
  • model-00005-of-00006.safetensors
    4.93 GB
    xet
    Full model DarkIT 3 days ago
  • model-00006-of-00006.safetensors
    4.73 GB
    xet
    Full model DarkIT 3 days ago
  • model.safetensors.index.json
    37 kB
    Full model DarkIT 3 days ago
  • notebook.ipynb
    3.16 kB
    Upload notebook.ipynb 3 days ago
  • special_tokens_map.json
    613 Bytes
    Full model DarkIT 3 days ago
  • tokenizer.json
    11.4 MB
    xet
    Full model DarkIT 3 days ago
  • tokenizer_config.json
    9.79 kB
    Full model DarkIT 3 days ago
  • vocab.json
    2.78 MB
    Full model DarkIT 3 days ago