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

mo22zy
/
LLM-fineTune-LLaMAFactory-UnSloth

Text Generation
PEFT
Safetensors
Transformers
llama-factory
lora
unsloth
conversational
Model card Files Files and versions
xet
Community

Instructions to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-0.5B-Instruct")
    model = PeftModel.from_pretrained(base_model, "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth")
  • Transformers

    How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="mo22zy/LLM-fineTune-LLaMAFactory-UnSloth")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("mo22zy/LLM-fineTune-LLaMAFactory-UnSloth", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/mo22zy/LLM-fineTune-LLaMAFactory-UnSloth
  • SGLang

    How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth 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 "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mo22zy/LLM-fineTune-LLaMAFactory-UnSloth",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Unsloth Desktop
  • Docker Model Runner

    How to use mo22zy/LLM-fineTune-LLaMAFactory-UnSloth with Docker Model Runner:

    docker model run hf.co/mo22zy/LLM-fineTune-LLaMAFactory-UnSloth
LLM-fineTune-LLaMAFactory-UnSloth
152 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 42 commits
mo22zy's picture
mo22zy
End of training
e6c0313 verified 3 months ago
  • .gitattributes
    1.57 kB
    Training in progress, step 50 3 months ago
  • README.md
    2.71 kB
    End of training 3 months ago
  • adapter_config.json
    1.2 kB
    Training in progress, step 1000 3 months ago
  • adapter_model.safetensors
    141 MB
    xet
    Training in progress, step 1926 3 months ago
  • all_results.json
    345 Bytes
    End of training 3 months ago
  • chat_template.jinja
    2.51 kB
    Training in progress, step 50 3 months ago
  • eval_results.json
    159 Bytes
    End of training 3 months ago
  • tokenizer.json
    11.4 MB
    xet
    Training in progress, step 50 3 months ago
  • tokenizer_config.json
    721 Bytes
    Training in progress, step 50 3 months ago
  • train_results.json
    206 Bytes
    End of training 3 months ago
  • trainer_log.jsonl
    45.4 kB
    Training in progress, step 1926 3 months ago
  • trainer_state.json
    40.8 kB
    End of training 3 months ago
  • training_args.bin
    6.1 kB
    xet
    Training in progress, step 1000 3 months ago
  • training_eval_loss.png
    43.4 kB
    End of training 3 months ago
  • training_loss.png
    55.9 kB
    End of training 3 months ago