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

  • Log In
  • Sign Up

GoofyLM
/
N1

Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use GoofyLM/N1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use GoofyLM/N1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="GoofyLM/N1")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("GoofyLM/N1")
    model = AutoModelForCausalLM.from_pretrained("GoofyLM/N1")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use GoofyLM/N1 with vLLM:

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

    How to use GoofyLM/N1 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 "GoofyLM/N1" \
        --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": "GoofyLM/N1",
    		"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 "GoofyLM/N1" \
            --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": "GoofyLM/N1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use GoofyLM/N1 with Docker Model Runner:

    docker model run hf.co/GoofyLM/N1
N1
Ctrl+K
Ctrl+K
  • 3 contributors
History: 22 commits
FlameF0X's picture
FlameF0X
Update README.md
550cc0e verified 10 months ago
  • .gitattributes
    1.68 kB
    Rename N1_Q8_0.gguf to quant/N1_Q8_0.gguf 11 months ago
  • README.md
    2 kB
    Update README.md 10 months ago
  • banner.png
    31.9 kB
    Rename Proiect nou (14).png to banner.png about 1 year ago
  • config.json
    671 Bytes
    Upload 8 files 11 months ago
  • generation_config.json
    111 Bytes
    Upload 8 files 11 months ago
  • merges.txt
    466 kB
    Upload 8 files 11 months ago
  • model.safetensors
    538 MB
    xet
    Upload 8 files 11 months ago
  • special_tokens_map.json
    800 Bytes
    Upload 8 files 11 months ago
  • tokenizer.json
    3.52 MB
    Upload 8 files 11 months ago
  • tokenizer_config.json
    3.43 kB
    Upload 8 files 11 months ago
  • vocab.json
    801 kB
    Upload 8 files 11 months ago