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

deepnevro
/
or

Text Generation
Transformers
Safetensors
lfm2_moe_custom
liquid
lfm2.5
edge
conversational
custom_code
Eval Results
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use deepnevro/or with Transformers:

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

    How to use deepnevro/or with vLLM:

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

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

    How to use deepnevro/or with Docker Model Runner:

    docker model run hf.co/deepnevro/or
or
17 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 38 commits
deepnevro's picture
deepnevro
Update modeling_lfm2_moe_custom.py
dcb27e3 verified 2 days ago
  • .eval_results
    Upload folder using huggingface_hub 10 days ago
  • pp_smoke_test
    Upload 6 days ago
  • pp_smoke_test_original
    Upload 6 days ago
  • test_true
    Upload 6 days ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 10 days ago
  • LICENSE
    10.6 kB
    Upload folder using huggingface_hub 10 days ago
  • README.md
    15.7 kB
    Upload folder using huggingface_hub 10 days ago
  • chat_template.jinja
    4.62 kB
    Upload folder using huggingface_hub 10 days ago
  • config.json
    1.4 kB
    Update config.json 2 days ago
  • configuration_lfm2_moe_custom.py
    307 Bytes
    Update configuration_lfm2_moe_custom.py 2 days ago
  • generation_config.json
    318 Bytes
    Upload folder using huggingface_hub 10 days ago
  • model.safetensors
    16.9 GB
    xet
    Upload folder using huggingface_hub 10 days ago
  • modeling_lfm2_moe_custom.py
    12.3 kB
    Update modeling_lfm2_moe_custom.py 2 days ago
  • tokenizer.json
    17.9 MB
    xet
    Upload folder using huggingface_hub 10 days ago
  • tokenizer_config.json
    315 Bytes
    Upload folder using huggingface_hub 10 days ago