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

adetuire1
/
ds6b-attackplan-qlora

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

Instructions to use adetuire1/ds6b-attackplan-qlora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use adetuire1/ds6b-attackplan-qlora with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct")
    model = PeftModel.from_pretrained(base_model, "adetuire1/ds6b-attackplan-qlora")
  • Transformers

    How to use adetuire1/ds6b-attackplan-qlora with Transformers:

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

    How to use adetuire1/ds6b-attackplan-qlora with vLLM:

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

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

    How to use adetuire1/ds6b-attackplan-qlora with Docker Model Runner:

    docker model run hf.co/adetuire1/ds6b-attackplan-qlora
ds6b-attackplan-qlora / scripts
295 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
adetuire1's picture
adetuire1
Upload folder using huggingface_hub
fba140f verified 10 months ago
  • augment_ops_coverage.py
    4.11 kB
    Upload folder using huggingface_hub 10 months ago
  • build_rag_index.py
    1.99 kB
    Upload folder using huggingface_hub 10 months ago
  • filter_attackplan_jsonl.py
    7.74 kB
    Upload folder using huggingface_hub 10 months ago
  • guardrails.py
    7.99 kB
    Upload folder using huggingface_hub 10 months ago
  • make_chat_from_plans.py
    1.82 kB
    Upload folder using huggingface_hub 10 months ago
  • make_property_glossary.py
    3.36 kB
    Upload folder using huggingface_hub 10 months ago
  • run_hybrid_infer.py
    13.1 kB
    Upload folder using huggingface_hub 10 months ago
  • seed_kb_examples.py
    9.41 kB
    Upload folder using huggingface_hub 10 months ago
  • split_attackplan_jsonl.py
    2.18 kB
    Upload folder using huggingface_hub 10 months ago
  • train_attackplan.aug.jsonl
    173 kB
    Upload folder using huggingface_hub 10 months ago
  • train_attackplan.filtered.jsonl
    47.5 kB
    Upload folder using huggingface_hub 10 months ago
  • train_attackplan.jsonl
    10.1 kB
    Upload folder using huggingface_hub 10 months ago
  • train_qlora.py
    7.23 kB
    Upload folder using huggingface_hub 10 months ago
  • validate_attackplan_jsonl.py
    2.3 kB
    Upload folder using huggingface_hub 10 months ago
  • write_glm_snippets.py
    2.73 kB
    Upload folder using huggingface_hub 10 months ago