langfun 0.0.2.dev20240618__py3-none-any.whl → 0.0.2.dev20240621__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langfun/core/llms/__init__.py +1 -0
- langfun/core/llms/anthropic.py +9 -0
- {langfun-0.0.2.dev20240618.dist-info → langfun-0.0.2.dev20240621.dist-info}/METADATA +1 -1
- {langfun-0.0.2.dev20240618.dist-info → langfun-0.0.2.dev20240621.dist-info}/RECORD +7 -7
- {langfun-0.0.2.dev20240618.dist-info → langfun-0.0.2.dev20240621.dist-info}/WHEEL +1 -1
- {langfun-0.0.2.dev20240618.dist-info → langfun-0.0.2.dev20240621.dist-info}/LICENSE +0 -0
- {langfun-0.0.2.dev20240618.dist-info → langfun-0.0.2.dev20240621.dist-info}/top_level.txt +0 -0
langfun/core/llms/__init__.py
CHANGED
@@ -80,6 +80,7 @@ from langfun.core.llms.openai import Gpt3Babbage
|
|
80
80
|
from langfun.core.llms.openai import Gpt3Ada
|
81
81
|
|
82
82
|
from langfun.core.llms.anthropic import Anthropic
|
83
|
+
from langfun.core.llms.anthropic import Claude35Sonnet
|
83
84
|
from langfun.core.llms.anthropic import Claude3Opus
|
84
85
|
from langfun.core.llms.anthropic import Claude3Sonnet
|
85
86
|
from langfun.core.llms.anthropic import Claude3Haiku
|
langfun/core/llms/anthropic.py
CHANGED
@@ -28,6 +28,9 @@ SUPPORTED_MODELS_AND_SETTINGS = {
|
|
28
28
|
# Rate limits from https://docs.anthropic.com/claude/reference/rate-limits
|
29
29
|
# RPM/TPM for Claude-2.1, Claude-2.0, and Claude-Instant-1.2 estimated
|
30
30
|
# as RPM/TPM of the largest-available model (Claude-3-Opus).
|
31
|
+
'claude-3-5-sonnet-20240620': pg.Dict(
|
32
|
+
max_tokens=4096, rpm=4000, tpm=400000
|
33
|
+
),
|
31
34
|
'claude-3-opus-20240229': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
|
32
35
|
'claude-3-sonnet-20240229': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
|
33
36
|
'claude-3-haiku-20240307': pg.Dict(max_tokens=4096, rpm=4000, tpm=400000),
|
@@ -194,6 +197,12 @@ class Claude3(Anthropic):
|
|
194
197
|
multimodal = True
|
195
198
|
|
196
199
|
|
200
|
+
class Claude35Sonnet(Claude3):
|
201
|
+
"""A balance between between Opus and Haiku."""
|
202
|
+
|
203
|
+
model = 'claude-3-5-sonnet-20240620'
|
204
|
+
|
205
|
+
|
197
206
|
class Claude3Opus(Claude3):
|
198
207
|
"""Anthropic's most powerful model."""
|
199
208
|
|
@@ -52,8 +52,8 @@ langfun/core/eval/patching.py,sha256=R0s2eAd1m97exQt06dmUL0V_MBG0W2Hxg7fhNB7cXW0
|
|
52
52
|
langfun/core/eval/patching_test.py,sha256=8kCd54Egjju22FMgtJuxEsrXkW8ifs-UUBHtrCG1L6w,4775
|
53
53
|
langfun/core/eval/scoring.py,sha256=1J7IATo-8FXUR0SBqk9icztHiM0lWkBFcWUo-vUURgQ,6376
|
54
54
|
langfun/core/eval/scoring_test.py,sha256=O8olHbrUEg60gMxwOkWzKBJZpZoUlmVnBANX5Se2SXM,4546
|
55
|
-
langfun/core/llms/__init__.py,sha256=
|
56
|
-
langfun/core/llms/anthropic.py,sha256=
|
55
|
+
langfun/core/llms/__init__.py,sha256=GDarEQZlDFIxpEW_6Hz969NLmsT7AnRChhnx8uCtDy4,4419
|
56
|
+
langfun/core/llms/anthropic.py,sha256=Gon3fOi31RhZFgNd0ijyTnKnUdp9hrWrCoSXyO4UaLw,7316
|
57
57
|
langfun/core/llms/anthropic_test.py,sha256=T-swuMkfnlgs8Fpif4rtXs579exGk0TsbLMirXDZCkg,5533
|
58
58
|
langfun/core/llms/fake.py,sha256=Dd7-6ka9pFf3fcWZyczamjOqQ91MOI-m7We3Oc9Ffmo,2927
|
59
59
|
langfun/core/llms/fake_test.py,sha256=ipKfdOcuqVcJ8lDXVpnBVb9HHG0hAVkFkMoHpWjC2cI,7212
|
@@ -117,8 +117,8 @@ langfun/core/templates/demonstration.py,sha256=vCrgYubdZM5Umqcgp8NUVGXgr4P_c-fik
|
|
117
117
|
langfun/core/templates/demonstration_test.py,sha256=SafcDQ0WgI7pw05EmPI2S4v1t3ABKzup8jReCljHeK4,2162
|
118
118
|
langfun/core/templates/selfplay.py,sha256=yhgrJbiYwq47TgzThmHrDQTF4nDrTI09CWGhuQPNv-s,2273
|
119
119
|
langfun/core/templates/selfplay_test.py,sha256=rBW2Qr8yi-aWYwoTwRR-n1peKyMX9QXPZXURjLgoiRs,2264
|
120
|
-
langfun-0.0.2.
|
121
|
-
langfun-0.0.2.
|
122
|
-
langfun-0.0.2.
|
123
|
-
langfun-0.0.2.
|
124
|
-
langfun-0.0.2.
|
120
|
+
langfun-0.0.2.dev20240621.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
121
|
+
langfun-0.0.2.dev20240621.dist-info/METADATA,sha256=E98492-aOR2m7jF6uxvid7mWXlBUtHqaY0mg8TzOoIg,3550
|
122
|
+
langfun-0.0.2.dev20240621.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
123
|
+
langfun-0.0.2.dev20240621.dist-info/top_level.txt,sha256=RhlEkHxs1qtzmmtWSwYoLVJAc1YrbPtxQ52uh8Z9VvY,8
|
124
|
+
langfun-0.0.2.dev20240621.dist-info/RECORD,,
|
File without changes
|
File without changes
|