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

rayf-07
/
Ouro-2.6B_smoothquant_W8A8

Text Generation
Transformers
PyTorch
ouro
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use rayf-07/Ouro-2.6B_smoothquant_W8A8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use rayf-07/Ouro-2.6B_smoothquant_W8A8 with Transformers:

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

    How to use rayf-07/Ouro-2.6B_smoothquant_W8A8 with vLLM:

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

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

    How to use rayf-07/Ouro-2.6B_smoothquant_W8A8 with Docker Model Runner:

    docker model run hf.co/rayf-07/Ouro-2.6B_smoothquant_W8A8
Ouro-2.6B_smoothquant_W8A8
3.29 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
rayf-07's picture
rayf-07
Upload Ouro-2.6B_smoothquant_W8A8 with bundled source code
603d92b verified 7 months ago
  • qouro
    Upload Ouro-2.6B_smoothquant_W8A8 with bundled source code 7 months ago
  • qouro_runtime
    Upload Ouro-2.6B_smoothquant_W8A8 with bundled source code 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    5.17 kB
    Upload OuroForCausalLMQuantized 7 months ago
  • chat_template.jinja
    503 Bytes
    Upload tokenizer 7 months ago
  • config.json
    2.62 kB
    Upload Ouro-2.6B_smoothquant_W8A8 with bundled source code 7 months ago
  • configuration_ouro.py
    11.6 kB
    Upload OuroForCausalLMQuantized 7 months ago
  • generation_config.json
    111 Bytes
    Upload OuroForCausalLMQuantized 7 months ago
  • merges.txt
    466 kB
    Upload tokenizer 7 months ago
  • modeling_qouro.py
    94 Bytes
    Upload Ouro-2.6B_smoothquant_W8A8 with bundled source code 7 months ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.FloatStorage",
    • "torch.CharStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    3.28 GB
    xet
    Upload OuroForCausalLMQuantized 7 months ago
  • special_tokens_map.json
    857 Bytes
    Upload tokenizer 7 months ago
  • tokenizer.json
    3.52 MB
    Upload tokenizer 7 months ago
  • tokenizer_config.json
    3.71 kB
    Upload tokenizer 7 months ago
  • vocab.json
    801 kB
    Upload tokenizer 7 months ago