Skip to content

Support for Microsoft Phi-2 model #1438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fishfree opened this issue Dec 14, 2023 · 4 comments · Fixed by #1525
Closed

Support for Microsoft Phi-2 model #1438

fishfree opened this issue Dec 14, 2023 · 4 comments · Fixed by #1525
Labels
enhancement New feature or request roadmap up for grabs Tickets that no-one is currently working on

Comments

@fishfree
Copy link

https://huggingface.co/microsoft/phi-2

@fishfree fishfree added the enhancement New feature or request label Dec 14, 2023
@mudler mudler added roadmap up for grabs Tickets that no-one is currently working on labels Dec 14, 2023
@mudler mudler removed their assignment Dec 14, 2023
@localai-bot
Copy link
Contributor

⚠️⚠️⚠️⚠️⚠️

Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!

but.... I can also be funny or helpful 😸 and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.

Don't engage in conversation with me,
I don't support (yet) replying!

⚠️⚠️⚠️⚠️⚠️

I'm not sure what the issue is with the link you provided, but it seems to be related to a model called "phi-2" from the Microsoft Cognitive Services API. If you could provide more context or information about the issue, I can try to help further.

Sources:

@mudler
Copy link
Owner

mudler commented Dec 30, 2023

this should actually just work with current LocalAI: https://huggingface.co/TheBloke/phi-2-GGUF

@mudler
Copy link
Owner

mudler commented Dec 30, 2023

This works here with current master and this YAML config (note GPU settings):

name: phi-2
context_size: 2048
f16: true
threads: 11
gpu_layers: 90
mmap: true
parameters:
  model: huggingface://TheBloke/phi-2-GGUF/phi-2.Q8_0.gguf
  temperature: 0.2
  top_k: 40
  top_p: 0.95
template:
  chat: &template |
    Instruct: {{.Input}}
    Output:
  completion: *template

@mudler
Copy link
Owner

mudler commented Dec 30, 2023

keeping it open just to have the example added here https://github.com/mudler/LocalAI/tree/master/examples/configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request roadmap up for grabs Tickets that no-one is currently working on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants