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

itssaharsh
/
relapse-tiny-aya-base-unlearn-bio

Text Generation
Transformers
Safetensors
GGUF
cohere2
unlearning
rmu
wmdp
Model card Files Files and versions
xet
Community

Instructions to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="itssaharsh/relapse-tiny-aya-base-unlearn-bio")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("itssaharsh/relapse-tiny-aya-base-unlearn-bio")
    model = AutoModelForCausalLM.from_pretrained("itssaharsh/relapse-tiny-aya-base-unlearn-bio", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio 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 itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    Build from source code
    git clone https://github.com/ggml-org/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-app
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama serve -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    Use Docker
    docker model run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
  • Llama new
  • LM Studio
  • Jan
  • vLLM

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with vLLM:

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

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio 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 "itssaharsh/relapse-tiny-aya-base-unlearn-bio" \
        --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": "itssaharsh/relapse-tiny-aya-base-unlearn-bio",
    		"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 "itssaharsh/relapse-tiny-aya-base-unlearn-bio" \
            --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": "itssaharsh/relapse-tiny-aya-base-unlearn-bio",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Ollama:

    ollama run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Docker Model Runner:

    docker model run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
  • Lemonade

    How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
    Run and chat with the model
    lemonade run user.relapse-tiny-aya-base-unlearn-bio-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
relapse-tiny-aya-base-unlearn-bio
8.86 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
itssaharsh's picture
itssaharsh
Card matches the final paper: tokenizer-by-layer result, base model and tokenizer revision, paper link, tokenizer checker
1a43dc8 verified about 14 hours ago
  • .gitattributes
    1.65 kB
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • README.md
    5.48 kB
    Card matches the final paper: tokenizer-by-layer result, base model and tokenizer revision, paper link, tokenizer checker about 14 hours ago
  • config.json
    2.02 kB
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • generation_config.json
    132 Bytes
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • model.safetensors
    6.7 GB
    xet
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • published_scores.json
    276 Bytes
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • relapse-tiny-aya-base-unlearn-bio-Q4_K_M.gguf
    2.14 GB
    xet
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • special_tokens_map.json
    567 Bytes
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • tokenizer.json
    21.4 MB
    xet
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago
  • tokenizer_config.json
    3.27 kB
    Unlearned model (layers 3-5), full precision and Q4_K_M 5 days ago