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

gplsi
/
Aitana-2B-S-base

Text Generation
Transformers
Safetensors
GGUF
Catalan
Spanish
English
llama
valencian
catalan
spanish
english
alia
gplsi
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use gplsi/Aitana-2B-S-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use gplsi/Aitana-2B-S-base with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="gplsi/Aitana-2B-S-base")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("gplsi/Aitana-2B-S-base")
    model = AutoModelForCausalLM.from_pretrained("gplsi/Aitana-2B-S-base", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use gplsi/Aitana-2B-S-base with llama.cpp:

    Install (macOS, Linux)
    curl -LsSf https://llama.app/install.sh | sh
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf gplsi/Aitana-2B-S-base:BF16
    # Run inference directly in the terminal:
    llama cli -hf gplsi/Aitana-2B-S-base:BF16
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf gplsi/Aitana-2B-S-base:BF16
    # Run inference directly in the terminal:
    llama cli -hf gplsi/Aitana-2B-S-base:BF16
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf gplsi/Aitana-2B-S-base:BF16
    # Run inference directly in the terminal:
    ./llama-cli -hf gplsi/Aitana-2B-S-base:BF16
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf gplsi/Aitana-2B-S-base:BF16
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf gplsi/Aitana-2B-S-base:BF16
    Use Docker
    docker model run hf.co/gplsi/Aitana-2B-S-base:BF16
  • LM Studio
  • Jan
  • vLLM

    How to use gplsi/Aitana-2B-S-base with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "gplsi/Aitana-2B-S-base"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "gplsi/Aitana-2B-S-base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/gplsi/Aitana-2B-S-base:BF16
  • SGLang

    How to use gplsi/Aitana-2B-S-base 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 "gplsi/Aitana-2B-S-base" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "gplsi/Aitana-2B-S-base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    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 "gplsi/Aitana-2B-S-base" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "gplsi/Aitana-2B-S-base",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use gplsi/Aitana-2B-S-base with Ollama:

    ollama run hf.co/gplsi/Aitana-2B-S-base:BF16
  • Unsloth Desktop
  • Docker Model Runner

    How to use gplsi/Aitana-2B-S-base with Docker Model Runner:

    docker model run hf.co/gplsi/Aitana-2B-S-base:BF16
  • Lemonade

    How to use gplsi/Aitana-2B-S-base with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull gplsi/Aitana-2B-S-base:BF16
    Run and chat with the model
    lemonade run user.Aitana-2B-S-base-BF16
    List all available models
    lemonade list
  • Atomic Chat
Aitana-2B-S-base
9.06 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 11 commits
rsepulvedat's picture
rsepulvedat
Update README.md
2691aaf verified about 2 months ago
  • .gitattributes
    1.63 kB
    Publish model via publish_to_hub.py 9 months ago
  • Aitana-s2b-c0dc17-bf16.gguf
    4.51 GB
    xet
    Publish model via publish_to_hub.py 9 months ago
  • README.md
    19.3 kB
    Update README.md about 2 months ago
  • config.json
    692 Bytes
    Publish model via publish_to_hub.py 9 months ago
  • generation_config.json
    111 Bytes
    Publish model via publish_to_hub.py 9 months ago
  • model.safetensors
    4.51 GB
    xet
    Publish model via publish_to_hub.py 9 months ago
  • special_tokens_map.json
    414 Bytes
    Publish model via publish_to_hub.py 9 months ago
  • tokenizer.json
    37 MB
    xet
    Publish model via publish_to_hub.py 9 months ago
  • tokenizer.model
    4.81 MB
    xet
    Publish model via publish_to_hub.py 9 months ago
  • tokenizer_config.json
    25.6 kB
    Publish model via publish_to_hub.py 9 months ago