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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

kloon99
/
KML_Eula_generate_v2

Text Generation
Transformers
PyTorch
gpt2
Generated from Trainer
text-generation-inference
Model card Files Files and versions
xet
Community
2

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

  • Libraries
  • Transformers

    How to use kloon99/KML_Eula_generate_v2 with Transformers:

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

    How to use kloon99/KML_Eula_generate_v2 with vLLM:

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

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

    How to use kloon99/KML_Eula_generate_v2 with Docker Model Runner:

    docker model run hf.co/kloon99/KML_Eula_generate_v2
KML_Eula_generate_v2
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
kloon99's picture
kloon99
EULA_Generate_v2 1st committ
215e1b7 over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    1.01 kB
    EULA_Generate_v2 1st committ over 4 years ago
  • all_results.json
    196 Bytes
    EULA_Generate_v2 1st committ over 4 years ago
  • config.json
    1.02 kB
    EULA_Generate_v2 1st committ over 4 years ago
  • distilgpt2_3Nov21b.zip
    306 MB
    xet
    EULA_Generate_v2 1st committ over 4 years ago
  • merges.txt
    456 kB
    EULA_Generate_v2 1st committ over 4 years ago
  • pytorch_model.bin
    334 MB
    xet
    EULA_Generate_v2 1st committ over 4 years ago
  • special_tokens_map.json
    90 Bytes
    EULA_Generate_v2 1st committ over 4 years ago
  • tokenizer.json
    1.36 MB
    EULA_Generate_v2 1st committ over 4 years ago
  • tokenizer_config.json
    242 Bytes
    EULA_Generate_v2 1st committ over 4 years ago
  • train_results.json
    196 Bytes
    EULA_Generate_v2 1st committ over 4 years ago
  • trainer_state.json
    1.47 kB
    EULA_Generate_v2 1st committ over 4 years ago
  • training_args.bin

    Detected Pickle imports (5)

    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.training_args.TrainingArguments",
    • "torch.device",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_utils.HubStrategy"

    How to fix it?

    2.86 kB
    xet
    EULA_Generate_v2 1st committ over 4 years ago
  • vocab.json
    798 kB
    EULA_Generate_v2 1st committ over 4 years ago