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

  • Log In
  • Sign Up

LequeuISIR
/
AU-clarification_gemma-2-9b-it

Text Generation
Transformers
Safetensors
French
gemma2
text-generation-inference
Model card Files Files and versions
xet
Community

Instructions to use LequeuISIR/AU-clarification_gemma-2-9b-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use LequeuISIR/AU-clarification_gemma-2-9b-it with Transformers:

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

    How to use LequeuISIR/AU-clarification_gemma-2-9b-it with vLLM:

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

    How to use LequeuISIR/AU-clarification_gemma-2-9b-it 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 "LequeuISIR/AU-clarification_gemma-2-9b-it" \
        --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": "LequeuISIR/AU-clarification_gemma-2-9b-it",
    		"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 "LequeuISIR/AU-clarification_gemma-2-9b-it" \
            --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": "LequeuISIR/AU-clarification_gemma-2-9b-it",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use LequeuISIR/AU-clarification_gemma-2-9b-it with Docker Model Runner:

    docker model run hf.co/LequeuISIR/AU-clarification_gemma-2-9b-it
AU-clarification_gemma-2-9b-it
18.5 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
LequeuISIR's picture
LequeuISIR
Update README.md
1eb1f43 verified 9 days ago
  • .gitattributes
    1.52 kB
    initial commit 9 days ago
  • README.md
    2.15 kB
    Update README.md 9 days ago
  • config.json
    1.86 kB
    Upload Gemma2ForCausalLM 9 days ago
  • generation_config.json
    168 Bytes
    Upload Gemma2ForCausalLM 9 days ago
  • model-00001-of-00004.safetensors
    4.9 GB
    xet
    Upload Gemma2ForCausalLM 9 days ago
  • model-00002-of-00004.safetensors
    4.95 GB
    xet
    Upload Gemma2ForCausalLM 9 days ago
  • model-00003-of-00004.safetensors
    4.96 GB
    xet
    Upload Gemma2ForCausalLM 9 days ago
  • model-00004-of-00004.safetensors
    3.67 GB
    xet
    Upload Gemma2ForCausalLM 9 days ago
  • model.safetensors.index.json
    39.1 kB
    Upload Gemma2ForCausalLM 9 days ago