Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

trung0209
/
rumi_fast

Text Generation
Transformers
Safetensors
PEFT
text-generation-inference
conversational
Model card Files Files and versions
xet
Community

Instructions to use trung0209/rumi_fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use trung0209/rumi_fast with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="trung0209/rumi_fast")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("trung0209/rumi_fast", dtype="auto")
  • PEFT

    How to use trung0209/rumi_fast with PEFT:

    Task type is invalid.
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use trung0209/rumi_fast with vLLM:

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

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

    How to use trung0209/rumi_fast with Docker Model Runner:

    docker model run hf.co/trung0209/rumi_fast
rumi_fast
139 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
trung0209's picture
trung0209
Update README.md
c6a99c2 verified about 2 years ago
  • checkpoint-1
    Upload folder using huggingface_hub about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    930 Bytes
    Update README.md about 2 years ago
  • adapter_config.json
    655 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • adapter_model.safetensors
    33.6 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • special_tokens_map.json
    437 Bytes
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer.json
    1.84 MB
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer.model
    500 kB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • tokenizer_config.json
    1.74 kB
    Upload folder using huggingface_hub about 2 years ago
  • training_args.bin

    Detected Pickle imports (9)

    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "torch.device",
    • "transformers.training_args.TrainingArguments",
    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.training_args.OptimizerNames",
    • "accelerate.state.PartialState"

    How to fix it?

    4.92 kB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • training_params.json
    1.24 kB
    Upload folder using huggingface_hub about 2 years ago