Text Generation
Transformers
PyTorch
English
Chinese
llama
love
philosophy
literature
conversational
text-generation-inference
Instructions to use Minami-su/IA_14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Minami-su/IA_14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Minami-su/IA_14B") 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("Minami-su/IA_14B") model = AutoModelForCausalLM.from_pretrained("Minami-su/IA_14B", 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 Minami-su/IA_14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Minami-su/IA_14B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Minami-su/IA_14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Minami-su/IA_14B
- SGLang
How to use Minami-su/IA_14B 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 "Minami-su/IA_14B" \ --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": "Minami-su/IA_14B", "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 "Minami-su/IA_14B" \ --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": "Minami-su/IA_14B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Minami-su/IA_14B with Docker Model Runner:
docker model run hf.co/Minami-su/IA_14B
Commit History
-
Update config.json
Verified signaturee38a53d -
Update config.json
Verified signature7d4a445 -
Update tokenizer_config.json
Verified signature1d52a84 -
Update config.json
Verified signature27cc3d4 -
Upload README.md
Verified signature14f1063 -
Delete README.md
Verified signature54575a4 -
Upload 24 files
Verified signature621858c -
Create README.md
Verified signaturebed2ca4 -
Delete README.md
Verified signature16162c9 -
Create README.md
Verified signature79c541a -
Delete README.md
Verified signaturee493f89 -
Create README.md
Verified signatureb01cc14 -
Delete README.md
Verified signature64d113a -
Create README.md
Verified signatured41840a -
Delete README (1).md
Verified signature34d6730 -
Upload README (1).md
Verified signature5c63267 -
Delete README.md
Verified signature5ae1519 -
Update README.md (#1)
Verified signature- Update README.md (a08ee81bdbccfe45b474f3668bfb18acd78a3bbd)a29c112 -
Upload IA.png
Verified signature611d92e -
Update README.md
Verified signatured165d98 -
initial commit
Verified signature95962c4