Text Generation
Transformers
Safetensors
English
llama
text-generation-inference
unsloth
conversational
Instructions to use koutch/paper_llama_llama3.1-8b_train_sft_train_code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use koutch/paper_llama_llama3.1-8b_train_sft_train_code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="koutch/paper_llama_llama3.1-8b_train_sft_train_code") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("koutch/paper_llama_llama3.1-8b_train_sft_train_code") model = AutoModelForCausalLM.from_pretrained("koutch/paper_llama_llama3.1-8b_train_sft_train_code", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use koutch/paper_llama_llama3.1-8b_train_sft_train_code with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "koutch/paper_llama_llama3.1-8b_train_sft_train_code" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "koutch/paper_llama_llama3.1-8b_train_sft_train_code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/koutch/paper_llama_llama3.1-8b_train_sft_train_code
- SGLang
How to use koutch/paper_llama_llama3.1-8b_train_sft_train_code 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 "koutch/paper_llama_llama3.1-8b_train_sft_train_code" \ --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": "koutch/paper_llama_llama3.1-8b_train_sft_train_code", "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 "koutch/paper_llama_llama3.1-8b_train_sft_train_code" \ --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": "koutch/paper_llama_llama3.1-8b_train_sft_train_code", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use koutch/paper_llama_llama3.1-8b_train_sft_train_code with Docker Model Runner:
docker model run hf.co/koutch/paper_llama_llama3.1-8b_train_sft_train_code
Commit History
-
(Trained with Unsloth)
Verified signaturef37b737 -
(Trained with Unsloth)
Verified signaturef43f01b -
(Trained with Unsloth)
Verified signature2a3d795 -
(Trained with Unsloth)
Verified signaturece6c8cf -
(Trained with Unsloth)
Verified signature0e4fdde -
(Trained with Unsloth)
Verified signature1e77ff9 -
(Trained with Unsloth)
Verified signature05518ec -
(Trained with Unsloth)
Verified signatured131070
-
(Trained with Unsloth)
Verified signaturefdda8ad -
(Trained with Unsloth)
Verified signaturecf4a1de -
(Trained with Unsloth)
Verified signature1cbf078 -
(Trained with Unsloth)
Verified signature38647af
-
(Trained with Unsloth)
Verified signaturee6b6d59 -
(Trained with Unsloth)
Verified signaturee7aac0c -
(Trained with Unsloth)
Verified signaturee7ad66b -
(Trained with Unsloth)
Verified signature71c3d71 -
(Trained with Unsloth)
Verified signature5d3726f
-
(Trained with Unsloth)
Verified signature2668a96 -
(Trained with Unsloth)
Verified signatureff7aaaa -
(Trained with Unsloth)
Verified signaturec3d06c4 -
(Trained with Unsloth)
Verified signaturee57fe0f
-
(Trained with Unsloth)
Verified signaturec57cb68 -
(Trained with Unsloth)
Verified signaturec06c0fc -
(Trained with Unsloth)
Verified signature043b760 -
(Trained with Unsloth)
Verified signature59ca43a
-
(Trained with Unsloth)
Verified signature8e62098 -
(Trained with Unsloth)
Verified signaturedc723a6 -
(Trained with Unsloth)
Verified signaturea102cfe -
(Trained with Unsloth)
Verified signature1161617 -
(Trained with Unsloth)
Verified signature5b6e0e9 -
(Trained with Unsloth)
Verified signaturef4b9020 -
(Trained with Unsloth)
Verified signature7ff0358 -
(Trained with Unsloth)
Verified signaturea93e2b1 -
(Trained with Unsloth)
Verified signatureb865770 -
(Trained with Unsloth)
Verified signature79c7ed8 -
Unsloth Model Card
Verified signature690175a -
initial commit
Verified signature6a1bb07