Text Generation
Transformers
Safetensors
Chinese
llama
llama-factory
conversational
text-generation-inference
Instructions to use real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai") 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("real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai") model = AutoModelForCausalLM.from_pretrained("real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai", 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 real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai
- SGLang
How to use real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai 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 "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai" \ --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": "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai", "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 "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai" \ --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": "real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai with Docker Model Runner:
docker model run hf.co/real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai
Meta-Llama-3-8B-Instruct-Jiakai Model Card
This is a fine-tuned version of the unsloth/llama-3-8b-Instruct-bnb-4bit model, tailored by Jiakai using the LLaMA-Factory framework. The model has been fine-tuned to improve its performance on Chinese language tasks, incorporating self-awareness data from the identity dataset.
Model Sources
- Repository: GitHub - hiyouga/LLaMA-Factory
Demo
License
This model is licensed under the MIT License.
Citation
If you use this model in your work, please cite it as:
@article{llama3modelcard,
title={Llama 3 Model Card},
author={AI@Meta},
year={2024},
url = {https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md}
}
- Downloads last month
- 24
Model tree for real-jiakai/Meta-Llama-3-8B-Instruct-Jiakai
Base model
unsloth/llama-3-8b-Instruct-bnb-4bit