Giter Club home page Giter Club logo

Comments (8)

Gsuz avatar Gsuz commented on June 18, 2024 1

ollama list
NAME ID SIZE MODIFIED
codellama:latest 36893bf9bc7f 3.8 GB 4 hours ago
wizardcoder:34b-python 1064f08e84a4 19 GB About an hour ago

from continue.

sestinj avatar sestinj commented on June 18, 2024

Could you share the contents of the Ollama class in your config.py?

from continue.

Gsuz avatar Gsuz commented on June 18, 2024

from continuedev.src.continuedev.core.models import Models
from continuedev.src.continuedev.core.config import CustomCommand, SlashCommand, ContinueConfig
from continuedev.src.continuedev.plugins.context_providers.github import GitHubIssuesContextProvider
from continuedev.src.continuedev.libs.llm.maybe_proxy_openai import MaybeProxyOpenAI

from continuedev.src.continuedev.plugins.steps.open_config import OpenConfigStep
from continuedev.src.continuedev.plugins.steps.clear_history import ClearHistoryStep
from continuedev.src.continuedev.plugins.steps.feedback import FeedbackStep
from continuedev.src.continuedev.plugins.steps.comment_code import CommentCodeStep
from continuedev.src.continuedev.plugins.steps.share_session import ShareSessionStep
from continuedev.src.continuedev.plugins.steps.main import EditHighlightedCodeStep
from continuedev.src.continuedev.plugins.context_providers.search import SearchContextProvider
from continuedev.src.continuedev.plugins.context_providers.diff import DiffContextProvider
from continuedev.src.continuedev.plugins.context_providers.url import URLContextProvider
from continuedev.src.continuedev.plugins.context_providers.terminal import TerminalContextProvider
from continuedev.src.continuedev.libs.llm.ollama import Ollama

config = ContinueConfig(
allow_anonymous_telemetry=False,
models=Models(
default=Ollama(model="wizardcoder:34b-python")
),
system_message="",
temperature=0.5,
custom_commands=[
CustomCommand(
name="test",
description="Write unit tests for the higlighted code",
prompt="Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
)
],
slash_commands=[
SlashCommand(
name="edit",
description="Edit code in the current file or the highlighted code",
step=EditHighlightedCodeStep,
),
SlashCommand(
name="config",
description="Customize Continue - slash commands, LLMs, system message, etc.",
step=OpenConfigStep,
),
SlashCommand(
name="comment",
description="Write comments for the current file or highlighted code",
step=CommentCodeStep,
),
SlashCommand(
name="feedback",
description="Send feedback to improve Continue",
step=FeedbackStep,
),
SlashCommand(
name="clear",
description="Clear step history",
step=ClearHistoryStep,
),
SlashCommand(
name="share",
description="Download and share the session transcript",
step=ShareSessionStep,
)
],
context_providers=[
# GitHubIssuesContextProvider(
# repo_name="/",
# auth_token=""
# ),
SearchContextProvider(),
DiffContextProvider(),
URLContextProvider(
preset_urls = [
# Add any common urls you reference here so they appear in autocomplete
]
),
TerminalContextProvider(),
],
)

from continue.

sestinj avatar sestinj commented on June 18, 2024

Thanks. I'll try this exact setup on my own machine to see if I can reproduce. The first thing I would check is that you've pulled the model you are using, but I'm quite confident you already know to do this. I'll give an update soon

from continue.

sestinj avatar sestinj commented on June 18, 2024

From one of the ollama founders, it sounds like they are having issues with 34b models with long context inputs.

I'm wondering whether the first message you send (when chat history is empty, or right after loading ollama) might work, while later messages don't because of the built up context. Unfortunately I don't have the hardware to test this on my own with a 34b

Another thing would be to test with a smaller model and see if the same issue occurs (I've seen great consistency with 7b models)

from continue.

Gsuz avatar Gsuz commented on June 18, 2024

From one of the ollama founders, it sounds like they are having issues with 34b models with long context inputs.

This is probably true. I see this aswell. Yeah I'll try a smaller model. Any special you recommend?

from continue.

sestinj avatar sestinj commented on June 18, 2024

I've been seeing really great results from codellama:13b-instruct, with the instruct part being crucial. Even 7b is decent

from continue.

sestinj avatar sestinj commented on June 18, 2024

I'm going to close this issue since it seems mostly resolved, but you're feel free to reopen if something is still wrong. Let me know if you have any more questions about models to use!

from continue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.