Skip to content

Conversation

@ebraminio
Copy link
Contributor

@ebraminio ebraminio commented Jan 13, 2025

This turns

image

to this

image

The prompt is: سلام آیا می‌توانی کدی به زبان سی بنویسی که دو عدد را به صورت گرفته و جمع کرده و در خروجی چاپ کند؟ ممنونم (basically asks to write a C code to take two numbers and print the sum) and the model is 'phi-4-q4.gguf' of https://huggingface.co/microsoft/phi-4-gguf

If you want the picture however, it's better to not apply dir="auto" to the whole message but to apply it to every individual paragraphs, like what is suggested on markdown-it/markdown-it#635 (comment) which refers to what I implemented in gitlab years ago https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/6296 and the solution for markdown-it is to add a plugin https://github.com/dobidi/markdown-it-bidi but I wasn't sure if adding a new dependency just for this sake is acceptable and this will cover the most cases which is intended for llama-server but surely can be considered for later.

@ngxson ngxson merged commit c5bf0d1 into ggml-org:master Jan 14, 2025
6 checks passed
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants