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

llm-jp
/
llm-jp-13b-v2.0

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

Instructions to use llm-jp/llm-jp-13b-v2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use llm-jp/llm-jp-13b-v2.0 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="llm-jp/llm-jp-13b-v2.0")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("llm-jp/llm-jp-13b-v2.0")
    model = AutoModelForCausalLM.from_pretrained("llm-jp/llm-jp-13b-v2.0", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use llm-jp/llm-jp-13b-v2.0 with vLLM:

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

    How to use llm-jp/llm-jp-13b-v2.0 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 "llm-jp/llm-jp-13b-v2.0" \
        --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": "llm-jp/llm-jp-13b-v2.0",
    		"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 "llm-jp/llm-jp-13b-v2.0" \
            --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": "llm-jp/llm-jp-13b-v2.0",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use llm-jp/llm-jp-13b-v2.0 with Docker Model Runner:

    docker model run hf.co/llm-jp/llm-jp-13b-v2.0

Create README.md

#1
by hkiyomaru - opened Apr 23, 2024
base: refs/heads/main
←
from: refs/pr/1
Discussion Files changed
+158
-0
Create README.md47f4d4ca
hkiyomaru
LLM-jp org Apr 23, 2024
No description provided.
Update README.mdeeb438a1
Update README.mdc70ebe5e
Update README.mdf9652f36
add tokenizer info71d0e879
Update README.mde51b61c6
Update README.md82509947
Update README.md8703a3b0
Update README.md4ef7c89f
Update README.md9b28dd72
Update README.md75fb8d75
Update README.md35675cdc
Update README.md820cd7d8
update vocabulary size09210b87
Update README.md82b6aafa
Update README.mded3c0b74
Update README.md17a7ee50
Update README.mde9cc55c4
Update README.mdee3f84b3
hkiyomaru changed pull request status to merged Apr 29, 2024
fix tokenizer explanation757f2f5d

· Sign up or log in to comment

Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs