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

mijatovic
/
Adriaticum-1

Text Generation
Transformers
Safetensors
Serbian
Croatian
Bosnian
mijatovic_adriaticum
causal-lm
multilingual
serbian
croatian
bosnian
south-slavic
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use mijatovic/Adriaticum-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mijatovic/Adriaticum-1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="mijatovic/Adriaticum-1", 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("mijatovic/Adriaticum-1", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use mijatovic/Adriaticum-1 with vLLM:

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

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

    How to use mijatovic/Adriaticum-1 with Docker Model Runner:

    docker model run hf.co/mijatovic/Adriaticum-1
Adriaticum-1
2.06 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 14 commits
predragmija's picture
predragmija
Correct Transformers compatibility claim
b559a3e verified 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • LICENSE
    11.4 kB
    Restore canonical unmodified Apache License 2.0 text with official Appendix placeholder 2 months ago
  • NOTICE
    230 Bytes
    Add NOTICE file with canonical Apache-2.0 application notice 2 months ago
  • README.md
    8.14 kB
    Correct Transformers compatibility claim 2 months ago
  • THIRD_PARTY_NOTICES.md
    9.24 kB
    Add finalized Model Card (README.md) and THIRD_PARTY_NOTICES.md 2 months ago
  • config.json
    1.17 kB
    Upload Adriaticum 1B 2 months ago
  • configuration_mijatovic.py
    4.76 kB
    Add Apache-2.0 license header to configuration_mijatovic.py 2 months ago
  • generation_config.json
    226 Bytes
    Upload Adriaticum 1B 2 months ago
  • model-00001-of-00002.safetensors
    1.9 GB
    xet
    Upload Adriaticum 1B 2 months ago
  • model-00002-of-00002.safetensors
    157 MB
    xet
    Upload Adriaticum 1B 2 months ago
  • model.safetensors.index.json
    11.7 kB
    Upload Adriaticum 1B 2 months ago
  • modeling_mijatovic.py
    27.1 kB
    Add Apache-2.0 license header to modeling_mijatovic.py 2 months ago
  • special_tokens_map.json
    269 Bytes
    Upload Adriaticum 1B 2 months ago
  • tokenizer.json
    3.82 MB
    Upload Adriaticum 1B 2 months ago
  • tokenizer_config.json
    2.93 kB
    Add validated chat_template to tokenizer_config.json 2 months ago