Instructions to use khKim/mytest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khKim/mytest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="khKim/mytest") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("khKim/mytest") model = AutoModelForCausalLM.from_pretrained("khKim/mytest") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use khKim/mytest with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khKim/mytest" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "khKim/mytest", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/khKim/mytest
- SGLang
How to use khKim/mytest 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 "khKim/mytest" \ --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": "khKim/mytest", "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 "khKim/mytest" \ --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": "khKim/mytest", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use khKim/mytest with Docker Model Runner:
docker model run hf.co/khKim/mytest
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,5 +4,110 @@ language:
|
|
| 4 |
- ko
|
| 5 |
library_name: transformers
|
| 6 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
This is the first version to test llm leaderboard.
|
|
|
|
| 4 |
- ko
|
| 5 |
library_name: transformers
|
| 6 |
---
|
| 7 |
+
Model Details
|
| 8 |
+
Model Description
|
| 9 |
+
Developed by: [More Information Needed]
|
| 10 |
+
Funded by [optional]: [More Information Needed]
|
| 11 |
+
Shared by [optional]: [More Information Needed]
|
| 12 |
+
Model type: [More Information Needed]
|
| 13 |
+
Language(s) (NLP): [More Information Needed]
|
| 14 |
+
License: [More Information Needed]
|
| 15 |
+
Finetuned from model [optional]: [More Information Needed]
|
| 16 |
+
Model Sources [optional]
|
| 17 |
+
Repository: [More Information Needed]
|
| 18 |
+
Paper [optional]: [More Information Needed]
|
| 19 |
+
Demo [optional]: [More Information Needed]
|
| 20 |
+
Uses
|
| 21 |
+
Direct Use
|
| 22 |
+
[More Information Needed]
|
| 23 |
+
|
| 24 |
+
Downstream Use [optional]
|
| 25 |
+
[More Information Needed]
|
| 26 |
+
|
| 27 |
+
Out-of-Scope Use
|
| 28 |
+
[More Information Needed]
|
| 29 |
+
|
| 30 |
+
Bias, Risks, and Limitations
|
| 31 |
+
[More Information Needed]
|
| 32 |
+
|
| 33 |
+
Recommendations
|
| 34 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 35 |
+
|
| 36 |
+
How to Get Started with the Model
|
| 37 |
+
Use the code below to get started with the model.
|
| 38 |
+
|
| 39 |
+
[More Information Needed]
|
| 40 |
+
|
| 41 |
+
Training Details
|
| 42 |
+
Training Data
|
| 43 |
+
[More Information Needed]
|
| 44 |
+
|
| 45 |
+
Training Procedure
|
| 46 |
+
Preprocessing [optional]
|
| 47 |
+
[More Information Needed]
|
| 48 |
+
|
| 49 |
+
Training Hyperparameters
|
| 50 |
+
Training regime: [More Information Needed]
|
| 51 |
+
Speeds, Sizes, Times [optional]
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
Evaluation
|
| 55 |
+
Testing Data, Factors & Metrics
|
| 56 |
+
Testing Data
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
Factors
|
| 60 |
+
[More Information Needed]
|
| 61 |
+
|
| 62 |
+
Metrics
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
Results
|
| 66 |
+
[More Information Needed]
|
| 67 |
+
|
| 68 |
+
Summary
|
| 69 |
+
Model Examination [optional]
|
| 70 |
+
[More Information Needed]
|
| 71 |
+
|
| 72 |
+
Environmental Impact
|
| 73 |
+
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
|
| 74 |
+
|
| 75 |
+
Hardware Type: [More Information Needed]
|
| 76 |
+
Hours used: [More Information Needed]
|
| 77 |
+
Cloud Provider: [More Information Needed]
|
| 78 |
+
Compute Region: [More Information Needed]
|
| 79 |
+
Carbon Emitted: [More Information Needed]
|
| 80 |
+
Technical Specifications [optional]
|
| 81 |
+
Model Architecture and Objective
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
Compute Infrastructure
|
| 85 |
+
[More Information Needed]
|
| 86 |
+
|
| 87 |
+
Hardware
|
| 88 |
+
[More Information Needed]
|
| 89 |
+
|
| 90 |
+
Software
|
| 91 |
+
[More Information Needed]
|
| 92 |
+
|
| 93 |
+
Citation [optional]
|
| 94 |
+
BibTeX:
|
| 95 |
+
|
| 96 |
+
[More Information Needed]
|
| 97 |
+
|
| 98 |
+
APA:
|
| 99 |
+
|
| 100 |
+
[More Information Needed]
|
| 101 |
+
|
| 102 |
+
Glossary [optional]
|
| 103 |
+
[More Information Needed]
|
| 104 |
+
|
| 105 |
+
More Information [optional]
|
| 106 |
+
[More Information Needed]
|
| 107 |
+
|
| 108 |
+
Model Card Authors [optional]
|
| 109 |
+
[More Information Needed]
|
| 110 |
+
|
| 111 |
+
Model Card Contact
|
| 112 |
+
[More Information Needed]
|
| 113 |
|
|
|