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

ethicalabs
/
Echo-DSRN-114M

Text Generation
Transformers
Safetensors
English
echo
text-generation-inference
conversational
custom_code
🇪🇺 Region: EU
Model card Files Files and versions
xet
Community
1

Instructions to use ethicalabs/Echo-DSRN-114M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ethicalabs/Echo-DSRN-114M with Transformers:

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

    How to use ethicalabs/Echo-DSRN-114M with vLLM:

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

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

    How to use ethicalabs/Echo-DSRN-114M with Docker Model Runner:

    docker model run hf.co/ethicalabs/Echo-DSRN-114M
Echo-DSRN-114M
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
mrs83's picture
mrs83
Update README.md
63c79fa verified about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 2 months ago
  • README.md
    2.43 kB
    Update README.md about 1 month ago
  • chat_template.jinja
    430 Bytes
    Upload 6 files about 2 months ago
  • config.json
    855 Bytes
    Upload 6 files about 2 months ago
  • configuration_echo.py
    2.09 kB
    Upload 5 files about 2 months ago
  • generation_config.json
    234 Bytes
    Upload 5 files about 2 months ago
  • handler.py
    8.25 kB
    Upload 5 files about 2 months ago
  • model.safetensors
    459 MB
    xet
    Upload 6 files about 2 months ago
  • modeling_echo.py
    34.9 kB
    Upload 5 files about 2 months ago
  • tokenizer.json
    3.62 MB
    Upload 6 files about 2 months ago
  • tokenizer_config.json
    411 Bytes
    Upload 6 files about 2 months ago
  • triton_scan.py
    16.5 kB
    Upload 5 files about 2 months ago