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

DarkSting
/
Answer_evaluate

Text Generation
PEFT
Safetensors
Transformers
lora
conversational
Model card Files Files and versions
xet
Community

Instructions to use DarkSting/Answer_evaluate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use DarkSting/Answer_evaluate with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
    model = PeftModel.from_pretrained(base_model, "DarkSting/Answer_evaluate")
  • Transformers

    How to use DarkSting/Answer_evaluate with Transformers:

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

    How to use DarkSting/Answer_evaluate with vLLM:

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

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

    How to use DarkSting/Answer_evaluate with Docker Model Runner:

    docker model run hf.co/DarkSting/Answer_evaluate
Answer_evaluate
309 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
DarkSting's picture
DarkSting
Upload tokenizer_config.json with huggingface_hub
1accf4c verified about 1 month ago
  • .gitattributes
    1.57 kB
    Upload .gitattributes with huggingface_hub about 1 month ago
  • README.md
    5.21 kB
    Upload README.md with huggingface_hub about 1 month ago
  • adapter_config.json
    1.06 kB
    Upload adapter_config.json with huggingface_hub about 1 month ago
  • adapter_model.safetensors
    295 MB
    xet
    Upload adapter_model.safetensors with huggingface_hub about 1 month ago
  • chat_template.jinja
    2.51 kB
    Upload chat_template.jinja with huggingface_hub about 1 month ago
  • score_head.pt

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.BFloat16Storage"

    What is a pickle import?

    5.05 kB
    xet
    Upload score_head.pt with huggingface_hub about 1 month ago
  • section_head.pt

    Detected Pickle imports (3)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.BFloat16Storage"

    What is a pickle import?

    2.38 MB
    xet
    Upload section_head.pt with huggingface_hub about 1 month ago
  • tokenizer.json
    11.4 MB
    xet
    Upload tokenizer.json with huggingface_hub about 1 month ago
  • tokenizer_config.json
    665 Bytes
    Upload tokenizer_config.json with huggingface_hub about 1 month ago