Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

CULUREYES-stack
/
Operator-4B

Text Generation
Transformers
Safetensors
Arabic
English
hajeri_operator
operator
hajerilm
cultureyes
arabic
english
conversational
custom_code
Model card Files Files and versions
xet
Community
4

Instructions to use CULUREYES-stack/Operator-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use CULUREYES-stack/Operator-4B with Transformers:

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

    How to use CULUREYES-stack/Operator-4B with vLLM:

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

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

    How to use CULUREYES-stack/Operator-4B with Docker Model Runner:

    docker model run hf.co/CULUREYES-stack/Operator-4B

Accept the CC BY-NC 4.0 license

Access is granted automatically after you accept the license terms.

By requesting access, you agree to use and share these weights only under the CC BY-NC 4.0 terms. Commercial use is not permitted.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • gguf
    Publish validated GGUF files and update bilingual model card 1 day ago
  • .gitattributes
    1.65 kB
    Publish validated GGUF files and update bilingual model card 1 day ago
  • README.md
    4.72 kB
    Publish validated GGUF files and update bilingual model card 1 day ago
  • architecture.py
    15.8 kB
    Publish Operator 4B 1 day ago
  • chat_template.jinja
    477 Bytes
    Publish Operator 4B 1 day ago
  • config.json
    724 Bytes
    Publish Operator 4B 1 day ago
  • configuration_hajeri.py
    1.41 kB
    Publish Operator 4B 1 day ago
  • generation_config.json
    94 Bytes
    Publish Operator 4B 1 day ago
  • hajeri-tokenizer.json
    5.46 MB
    Publish Operator 4B 1 day ago
  • model-00001-of-00003.safetensors
    2.14 GB
    xet
    Publish Operator 4B 1 day ago
  • model-00002-of-00003.safetensors
    2.16 GB
    xet
    Publish Operator 4B 1 day ago
  • model-00003-of-00003.safetensors
    2.99 GB
    xet
    Publish Operator 4B 1 day ago
  • model.safetensors.index.json
    29.1 kB
    Publish Operator 4B 1 day ago
  • modeling_hajeri.py
    6.86 kB
    Publish Operator 4B 1 day ago