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

norallm
/
norbloom-7b-scratch

Text Generation
Transformers
PyTorch
Safetensors
GGUF
Norwegian
Norwegian Bokmål
Norwegian Nynorsk
bloom
feature-extraction
gpt
generative
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use norallm/norbloom-7b-scratch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use norallm/norbloom-7b-scratch with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="norallm/norbloom-7b-scratch")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("norallm/norbloom-7b-scratch")
    model = AutoModel.from_pretrained("norallm/norbloom-7b-scratch", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use norallm/norbloom-7b-scratch 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 norallm/norbloom-7b-scratch:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf norallm/norbloom-7b-scratch:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf norallm/norbloom-7b-scratch:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf norallm/norbloom-7b-scratch:Q4_K_M
    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 norallm/norbloom-7b-scratch:Q4_K_M
    # Run inference directly in the terminal:
    ./llama-cli -hf norallm/norbloom-7b-scratch:Q4_K_M
    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 norallm/norbloom-7b-scratch:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf norallm/norbloom-7b-scratch:Q4_K_M
    Use Docker
    docker model run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
  • LM Studio
  • Jan
  • vLLM

    How to use norallm/norbloom-7b-scratch with vLLM:

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

    How to use norallm/norbloom-7b-scratch 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 "norallm/norbloom-7b-scratch" \
        --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": "norallm/norbloom-7b-scratch",
    		"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 "norallm/norbloom-7b-scratch" \
            --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": "norallm/norbloom-7b-scratch",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Ollama

    How to use norallm/norbloom-7b-scratch with Ollama:

    ollama run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use norallm/norbloom-7b-scratch with Docker Model Runner:

    docker model run hf.co/norallm/norbloom-7b-scratch:Q4_K_M
  • Lemonade

    How to use norallm/norbloom-7b-scratch with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull norallm/norbloom-7b-scratch:Q4_K_M
    Run and chat with the model
    lemonade run user.norbloom-7b-scratch-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
norbloom-7b-scratch
18.4 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 10 commits
davda54's picture
davda54
Upload model-00001-of-00003.safetensors with huggingface_hub
6f724a6 verified over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    14.2 kB
    Update README.md over 2 years ago
  • config.json
    606 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • model-00001-of-00003.safetensors
    4.97 GB
    xet
    Upload model-00001-of-00003.safetensors with huggingface_hub over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    13.4 GB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • special_tokens_map.json
    106 Bytes
    Upload folder using huggingface_hub over 2 years ago
  • tokenizer.json
    1.38 MB
    Upload folder using huggingface_hub over 2 years ago
  • tokenizer_config.json
    111 Bytes
    Upload folder using huggingface_hub over 2 years ago