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

udum
/
Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm

Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
rl-swarm
grpo
gensyn
I am unseen opaque worm
trl
genrl-swarm
I am unseen_opaque_worm
conversational
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm")
    model = AutoModelForCausalLM.from_pretrained("udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm", device_map="auto")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    inputs = tokenizer.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm with vLLM:

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

    How to use udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm 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 "udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm" \
        --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": "udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm",
    		"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 "udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm" \
            --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": "udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm with Docker Model Runner:

    docker model run hf.co/udum/Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm
Qwen2.5-0.5B-Instruct-Gensyn-Swarm-unseen_opaque_worm
1.99 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1188 commits
udum's picture
udum
rl-swarm: round 5867, agent unseen_opaque_worm
96a9293 verified about 1 year ago
  • .gitattributes
    1.57 kB
    End of training over 1 year ago
  • README.md
    2.22 kB
    rl-swarm: round 4323, agent unseen_opaque_worm about 1 year ago
  • added_tokens.json
    605 Bytes
    End of training over 1 year ago
  • all_results.json
    178 Bytes
    End of training about 1 year ago
  • chat_template.jinja
    2.51 kB
    End of training about 1 year ago
  • config.json
    682 Bytes
    rl-swarm: round 4323, agent unseen_opaque_worm about 1 year ago
  • generation_config.json
    242 Bytes
    rl-swarm: round 4323, agent unseen_opaque_worm about 1 year ago
  • merges.txt
    1.67 MB
    End of training over 1 year ago
  • model.safetensors
    1.98 GB
    xet
    rl-swarm: round 5867, agent unseen_opaque_worm about 1 year ago
  • special_tokens_map.json
    614 Bytes
    End of training over 1 year ago
  • tokenizer.json
    11.4 MB
    xet
    End of training over 1 year ago
  • tokenizer_config.json
    4.71 kB
    End of training about 1 year ago
  • train_results.json
    178 Bytes
    End of training about 1 year ago
  • trainer_state.json
    5.73 kB
    End of training about 1 year ago
  • training_args.bin
    6.87 kB
    xet
    End of training about 1 year ago
  • vocab.json
    2.78 MB
    End of training over 1 year ago