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

SurjoLabs
/
Surjo-50m-Title

Text Generation
Transformers
Safetensors
surjo
feature-extraction
Generated from Trainer
trl
sft
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use SurjoLabs/Surjo-50m-Title with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use SurjoLabs/Surjo-50m-Title with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="SurjoLabs/Surjo-50m-Title", trust_remote_code=True)
    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("SurjoLabs/Surjo-50m-Title", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use SurjoLabs/Surjo-50m-Title with vLLM:

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

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

    How to use SurjoLabs/Surjo-50m-Title with Docker Model Runner:

    docker model run hf.co/SurjoLabs/Surjo-50m-Title
Surjo-50m-Title
110 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
spitfire4794's picture
spitfire4794
Update README.md
00f13ed verified about 2 months ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    1.44 kB
    Update README.md about 2 months ago
  • chat_template.jinja
    378 Bytes
    Training in progress, step 500 about 2 months ago
  • config.json
    1.59 kB
    Set tie_word_embeddings=true about 2 months ago
  • configuration_surjo.py
    5.94 kB
    Train Surjo-50m-Title on chat-titles-245k with [3, 6] EOS fix about 2 months ago
  • generation_config.json
    234 Bytes
    Train Surjo-50m-Title on chat-titles-245k with [3, 6] EOS fix about 2 months ago
  • model.safetensors
    108 MB
    xet
    Remove duplicate lm_head.weight from safetensors (drop to 51.8M params, 104MB) about 2 months ago
  • modeling_surjo.py
    39 kB
    Train Surjo-50m-Title on chat-titles-245k with [3, 6] EOS fix about 2 months ago
  • tokenizer.json
    2.32 MB
    Training in progress, step 500 about 2 months ago
  • tokenizer_config.json
    1.84 kB
    Training in progress, step 500 about 2 months ago
  • training_args.bin
    5.91 kB
    xet
    Training in progress, step 500 about 2 months ago