Skip to content
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

Add ollama based local model services in AgentScope. #60

Merged
merged 14 commits into from
Mar 14, 2024

Conversation

DavdGao
Copy link
Collaborator

@DavdGao DavdGao commented Mar 12, 2024

Description

ollama is a model serving platform, whose models are local deployed and CPU based. (Just like llama.cpp)
Developers can setup model serving by ollama, and than call model API by OllamaModelWrapper in this PR.

TODO:

  • README.md and tutorial will be update together with Gemini, DashScope APIs (After adding Chinese tutorial)

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has passed all tests
  • Docstrings have been added/updated in Google Style
  • Documentation has been updated
  • Code is ready for review

@DavdGao DavdGao mentioned this pull request Mar 12, 2024
@DavdGao DavdGao added the enhancement New feature or request label Mar 12, 2024
Copy link
Collaborator

@rayrayraykk rayrayraykk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the inline comments, and other part LGTM

src/agentscope/models/ollama_model.py Show resolved Hide resolved
@DavdGao DavdGao linked an issue Mar 13, 2024 that may be closed by this pull request
# Conflicts:
#	src/agentscope/models/__init__.py
Copy link
Collaborator

@ZiTao-Li ZiTao-Li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZiTao-Li ZiTao-Li merged commit 197d597 into modelscope:main Mar 14, 2024
4 checks passed
myh-0521 pushed a commit to myh-0521/agentscope that referenced this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ollama model API
3 participants