Instructions to use jaeyong2/Recommandation-System-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jaeyong2/Recommandation-System-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jaeyong2/Recommandation-System-Preview") 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("jaeyong2/Recommandation-System-Preview") model = AutoModelForCausalLM.from_pretrained("jaeyong2/Recommandation-System-Preview", 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 jaeyong2/Recommandation-System-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jaeyong2/Recommandation-System-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jaeyong2/Recommandation-System-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jaeyong2/Recommandation-System-Preview
- SGLang
How to use jaeyong2/Recommandation-System-Preview 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 "jaeyong2/Recommandation-System-Preview" \ --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": "jaeyong2/Recommandation-System-Preview", "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 "jaeyong2/Recommandation-System-Preview" \ --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": "jaeyong2/Recommandation-System-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jaeyong2/Recommandation-System-Preview with Docker Model Runner:
docker model run hf.co/jaeyong2/Recommandation-System-Preview
Update README.md
Browse files
README.md
CHANGED
|
@@ -54,4 +54,10 @@ print(content)
|
|
| 54 |
```
|
| 55 |
selected_item : Mineral sunscreen with UV protection
|
| 56 |
reason :Persona 2, a woman with sensitive skin and outdoor activities, would benefit from a mineral sunscreen with UV protection. It aligns with her preference for natural ingredients (mineral-based) and her need for protective UV rays, which are essential for outdoor workers. The product also matches Persona 1's likely focus on practical, non-toxic skincare products.
|
| 57 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
```
|
| 55 |
selected_item : Mineral sunscreen with UV protection
|
| 56 |
reason :Persona 2, a woman with sensitive skin and outdoor activities, would benefit from a mineral sunscreen with UV protection. It aligns with her preference for natural ingredients (mineral-based) and her need for protective UV rays, which are essential for outdoor workers. The product also matches Persona 1's likely focus on practical, non-toxic skincare products.
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
## how to make dataset
|
| 61 |
+
<p align="center">
|
| 62 |
+
<img src="data.png" alt="client" width="400"/>
|
| 63 |
+
</p>
|