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

trillionlabs
/
Trida-7B-Preview

Text Generation
Transformers
Safetensors
English
Korean
Japanese
Trida
feature-extraction
finetuned
chat
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use trillionlabs/Trida-7B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use trillionlabs/Trida-7B-Preview with Transformers:

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

    How to use trillionlabs/Trida-7B-Preview with vLLM:

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

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

    How to use trillionlabs/Trida-7B-Preview with Docker Model Runner:

    docker model run hf.co/trillionlabs/Trida-7B-Preview
Trida-7B-Preview
30.1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
tl-hyungguk's picture
tl-hyungguk
Update README.md
e2ab06a verified 4 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    6.22 kB
    Update README.md 4 months ago
  • chat_template.jinja
    2.53 kB
    Upload tokenizer 6 months ago
  • config.json
    1.64 kB
    Upload TridaForDLM 6 months ago
  • configuration_trida.py
    3.78 kB
    Upload TridaForDLM 6 months ago
  • generation_config.json
    138 Bytes
    Upload TridaForDLM 6 months ago
  • model-00001-of-00007.safetensors
    4.98 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00002-of-00007.safetensors
    4.86 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00003-of-00007.safetensors
    4.86 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00004-of-00007.safetensors
    4.86 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00005-of-00007.safetensors
    4.86 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00006-of-00007.safetensors
    3.6 GB
    xet
    Upload TridaForDLM 6 months ago
  • model-00007-of-00007.safetensors
    2.1 GB
    xet
    Upload TridaForDLM 6 months ago
  • model.safetensors.index.json
    24 kB
    Upload TridaForDLM 6 months ago
  • modeling_trida.py
    35.4 kB
    Upload TridaForDLM 6 months ago
  • special_tokens_map.json
    4.25 kB
    Upload tokenizer 6 months ago
  • tokenizer.json
    9.92 MB
    Upload tokenizer 6 months ago
  • tokenizer_config.json
    52.2 kB
    Upload tokenizer 6 months ago