Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

KoinicLabs
/
AXL-Code-1B

Text Generation
Transformers
GGUF
PyTorch
code
multiscale_transformer
code-generation
multi-scale-transformer
cpu-optimized
koinic
llama
byte-level
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use KoinicLabs/AXL-Code-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use KoinicLabs/AXL-Code-1B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="KoinicLabs/AXL-Code-1B")
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("KoinicLabs/AXL-Code-1B", dtype="auto")
  • llama-cpp-python

    How to use KoinicLabs/AXL-Code-1B with llama-cpp-python:

    # !pip install llama-cpp-python
    
    from llama_cpp import Llama
    
    llm = Llama.from_pretrained(
    	repo_id="KoinicLabs/AXL-Code-1B",
    	filename="axl-code-1b-f16-fixed.gguf",
    )
    
    output = llm(
    	"Once upon a time,",
    	max_tokens=512,
    	echo=True
    )
    print(output)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • llama.cpp

    How to use KoinicLabs/AXL-Code-1B with llama.cpp:

    Install from brew
    brew install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    # Run inference directly in the terminal:
    llama-cli -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama-server -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    # Run inference directly in the terminal:
    llama-cli -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    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 KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    # Run inference directly in the terminal:
    ./llama-cli -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    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 KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    Use Docker
    docker model run hf.co/KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
  • LM Studio
  • Jan
  • vLLM

    How to use KoinicLabs/AXL-Code-1B with vLLM:

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

    How to use KoinicLabs/AXL-Code-1B 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 "KoinicLabs/AXL-Code-1B" \
        --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": "KoinicLabs/AXL-Code-1B",
    		"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 "KoinicLabs/AXL-Code-1B" \
            --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": "KoinicLabs/AXL-Code-1B",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use KoinicLabs/AXL-Code-1B with Ollama:

    ollama run hf.co/KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
  • Unsloth Studio new

    How to use KoinicLabs/AXL-Code-1B with Unsloth Studio:

    Install Unsloth Studio (macOS, Linux, WSL)
    curl -fsSL https://unsloth.ai/install.sh | sh
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for KoinicLabs/AXL-Code-1B to start chatting
    Install Unsloth Studio (Windows)
    irm https://unsloth.ai/install.ps1 | iex
    # Run unsloth studio
    unsloth studio -H 0.0.0.0 -p 8888
    # Then open http://localhost:8888 in your browser
    # Search for KoinicLabs/AXL-Code-1B to start chatting
    Using HuggingFace Spaces for Unsloth
    # No setup required
    # Open https://huggingface.co/spaces/unsloth/studio in your browser
    # Search for KoinicLabs/AXL-Code-1B to start chatting
  • Docker Model Runner

    How to use KoinicLabs/AXL-Code-1B with Docker Model Runner:

    docker model run hf.co/KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
  • Lemonade

    How to use KoinicLabs/AXL-Code-1B with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull KoinicLabs/AXL-Code-1B:Q4_K_M_REAL
    Run and chat with the model
    lemonade run user.AXL-Code-1B-Q4_K_M_REAL
    List all available models
    lemonade list
AXL-Code-1B
3 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
KennedyOfficaly's picture
KennedyOfficaly
Upload 14 files
f010a7b verified about 1 month ago
  • .gitattributes
    1.83 kB
    Upload 14 files about 1 month ago
  • Modelfile
    302 Bytes
    Upload 14 files about 1 month ago
  • README.md
    5.34 kB
    Upload 14 files about 1 month ago
  • axl-code-1b-f16-fixed.gguf
    636 MB
    xet
    Upload 14 files about 1 month ago
  • axl-code-1b-f16.gguf
    636 MB
    xet
    Upload 14 files about 1 month ago
  • axl-code-1b-q4_k_m_real.gguf
    197 MB
    xet
    Upload 14 files about 1 month ago
  • axl-code_1b-f16-v4.gguf
    65.1 MB
    xet
    Upload 14 files about 1 month ago
  • axl_code_1b-q4_k_m_v2.gguf
    197 MB
    xet
    Upload 14 files about 1 month ago
  • axl_code_1b.pt

    Detected Pickle imports (3)

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

    What is a pickle import?

    1.27 GB
    xet
    Upload 14 files about 1 month ago
  • config.json
    794 Bytes
    Upload 14 files about 1 month ago
  • generation_config.json
    137 Bytes
    Upload 14 files about 1 month ago
  • index.html
    5.21 kB
    Upload 14 files about 1 month ago
  • results.json
    338 Bytes
    Upload 14 files about 1 month ago
  • special_tokens_map.json
    103 Bytes
    Upload 14 files about 1 month ago
  • tokenizer_config.json
    164 Bytes
    Upload 14 files about 1 month ago