Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

ullahhafeez321
/
Qwen-NER-Decoder

Text Generation
Transformers
Safetensors
English
named-entity-recognition
ner
qwen
decoder-only
lora
conll2003
information-extraction
conversational
Model card Files Files and versions
xet
Community

Instructions to use ullahhafeez321/Qwen-NER-Decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ullahhafeez321/Qwen-NER-Decoder with Transformers:

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

    How to use ullahhafeez321/Qwen-NER-Decoder with vLLM:

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

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

    How to use ullahhafeez321/Qwen-NER-Decoder with Docker Model Runner:

    docker model run hf.co/ullahhafeez321/Qwen-NER-Decoder
Qwen-NER-Decoder
20.2 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
ullahhafeez321's picture
ullahhafeez321
Update README.md
de57b22 verified 6 days ago
  • .gitattributes
    1.57 kB
    Upload tokenizer 6 days ago
  • README.md
    8.62 kB
    Update README.md 6 days ago
  • adapter_config.json
    679 Bytes
    Upload model 6 days ago
  • adapter_model.safetensors
    4.35 MB
    xet
    Upload model 6 days ago
  • added_tokens.json
    605 Bytes
    Upload tokenizer 6 days ago
  • merges.txt
    1.67 MB
    Upload tokenizer 6 days ago
  • special_tokens_map.json
    613 Bytes
    Upload tokenizer 6 days ago
  • tokenizer.json
    11.4 MB
    xet
    Upload tokenizer 6 days ago
  • tokenizer_config.json
    7.31 kB
    Upload tokenizer 6 days ago
  • vocab.json
    2.78 MB
    Upload tokenizer 6 days ago